Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithPerlbrewEnvironment

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

Signature

methodWithPerlbrewEnvironmentbuilder
Configures the Perl application to use a specific perlbrew-managed Perl version. This resolves the Perl executable from the perlbrew installation and updates the resource's command and environment variables so that all subsequent operations use the specified Perl version.
WithPerlbrewEnvironment(
version string,
options ...*WithPerlbrewEnvironmentOptions,
) PerlAppResource
versionstringThe perlbrew version name. Accepts both "5.38.0" and "perl-5.38.0".
options...*WithPerlbrewEnvironmentOptionsOptional settings, described under Options.

Optional parameters are passed in a trailing options ...*WithPerlbrewEnvironmentOptions 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: