WithLocalLib
Method
func (PerlAppResource) WithLocalLib(options ...*WithLocalLibOptions) PerlAppResourceSignature
method
WithLocalLib builderConfigures the Perl application to use a local::lib directory for module isolation. Sets
PERL5LIB , PERL_LOCAL_LIB_ROOT , PERL_MM_OPT , and PERL_MB_OPT environment variables so that modules are resolved from and installed into the local directory.WithLocalLib(options ...*WithLocalLibOptions) PerlAppResourceParameters
options...*WithLocalLibOptions Optional settings, described under Options.Options
Optional parameters are passed in a trailing options ...*WithLocalLibOptions argument.
Path*stringThe path to the local::lib directory. Relative paths are resolved against the resource's working directory (appDirectory ), not the AppHost project. Rooted paths (e.g., /opt/perl-libs or C:\perl-libs ) are used as-is. Defaults to "local" (the Carton convention).Returns
PerlAppResource A reference to the I.
Returns a handle; failures surface later via Err().
Applies to
This method applies to the following types: