WithPerlbrewEnvironment
Method
func (PerlAppResource) WithPerlbrewEnvironment( version string, options ...*WithPerlbrewEnvironmentOptions,) PerlAppResourceSignature
method
WithPerlbrewEnvironment builderConfigures 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,) PerlAppResourceParameters
versionstringThe perlbrew version name. Accepts both "5.38.0" and "perl-5.38.0" .options...*WithPerlbrewEnvironmentOptions Optional settings, described under Options.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.Returns
PerlAppResource A reference to the I.
Returns a handle; failures surface later via Err().
Applies to
This method applies to the following types: