# withLocalLib

- Module: [CommunityToolkit.Aspire.Hosting.Perl](/reference/api/typescript/communitytoolkit.aspire.hosting.perl.md)
- Version: `13.4.0`
- Kind: `method`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire)

Configures 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.

## Definition

```typescript
interface PerlAppResource {
  // ... omitted for brevity
  withLocalLib(path?: string): PerlAppResource
}
```

## Parameters

- `path` (`string`) `optional` `= local`

## Returns

[PerlAppResource](/reference/api/typescript/communitytoolkit.aspire.hosting.perl/perlappresource.md) `builder`

## Applies to

- [PerlAppResource](/reference/api/typescript/communitytoolkit.aspire.hosting.perl/perlappresource.md)
