Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithPerlbrew

Method
📦 CommunityToolkit.Aspire.Hosting.Perl v13.6.1
func (PerlAppResource) WithPerlbrew(
version string,
options ...*WithPerlbrewOptions,
) PerlAppResource

Signature

methodWithPerlbrewbuilder
Configures the Perl application to use a specific perlbrew-managed Perl version.
WithPerlbrew(
version string,
options ...*WithPerlbrewOptions,
) PerlAppResource
versionstringThe perlbrew version name. Accepts both "5.38.0" and "perl-5.38.0".
options...*WithPerlbrewOptionsOptional settings, described under Options.

Optional parameters are passed in a trailing options ...*WithPerlbrewOptions argument.

PerlbrewRoot*stringOptional explicit path to the perlbrew root directory. If null, resolves from the PERLBREW_ROOT environment variable, or defaults to ~/perl5/perlbrew.
PerlAppResource

A reference to the IResourceBuilder.

Returns a handle; failures surface later via Err().

Applies to

This method applies to the following types: