PerlAppResource.WithPerlbrew

Method
📦 CommunityToolkit.Aspire.Hosting.Perl v13.6.1
type PerlAppResource interface {
// ... omitted for brevity
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().

Defined on

This method is defined on the following type: