# PerlModuleInstallerResource Constructors

- Package: [CommunityToolkit.Aspire.Hosting.Perl](/reference/api/csharp/communitytoolkit.aspire.hosting.perl.md)
- Type: [PerlModuleInstallerResource](/reference/api/csharp/communitytoolkit.aspire.hosting.perl/perlmoduleinstallerresource.md)
- Kind: `Constructors`
- Members: `1`

A resource that represents a package installer for a perl module.

## PerlModuleInstallerResource(string, string, string)

- Name: `Constructor(string, string, string)`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d9dc6fc02412d7398c5722840513d99965a6e98f/src/CommunityToolkit.Aspire.Hosting.Perl/PerlModuleInstallerResource.cs#L10)

A resource that represents a package installer for a perl module.

```csharp
public class PerlModuleInstallerResource
{
    public PerlModuleInstallerResource(
        string name,
        string packageManager,
        string workingDirectory)
    {
        // ...
    }
}
```

## Parameters

- `name` (`string`)
  The name of the resource.
- `packageManager` (`string`)
  The package manager to use for the installation, typically CPAN, CPANM (Cpan Minus), or Carton.
- `workingDirectory` (`string`)
  The working directory to use for the command.
