addPerlScript
Method
interface IDistributedApplicationBuilder { // ... omitted for brevity addPerlScript( resourceName: string, appDirectory: string, scriptName: string): PerlAppResource;}Signature
method
addPerlScript builderAdds a Perl script resource (worker, CLI tool, background service) to the application model.
addPerlScript( resourceName: string, appDirectory: string, scriptName: string): PerlAppResourceParameters
resourceName stringThe name of the resource.appDirectory stringThe path to the directory containing the Perl script. Resolved relative to the AppHost project directory; becomes the resource's working directory and the anchor for all relative path resolution (script path, `WithLocalLib`, cpanfile discovery).scriptName stringThe path to the script relative to `appDirectory`. Do not include the `appDirectory` prefix — the script is resolved relative to `appDirectory` automatically.Returns
PerlAppResource Applies to
This method applies to the following types: