# withPackage

- 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)

Adds a Perl package (module) to be installed before the application starts. Uses the configured package manager: cpan by default, or cpanm if `WithCpanMinus``1` was called.

## Definition

```typescript
interface PerlAppResource {
  // ... omitted for brevity
  withPackage(
    packageName: string,
    force?: boolean,
    skipTest?: boolean): PerlAppResource
}
```

## Parameters

- `packageName` (`string`)
- `force` (`boolean`) `optional` `= False`
- `skipTest` (`boolean`) `optional` `= False`

## Returns

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

## Applies to

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