AddPerlScript
Method
func (DistributedApplicationBuilder) AddPerlScript( resourceName string, appDirectory string, scriptName string,) PerlAppResourceSignature
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 A reference to the I.
Returns a handle; failures surface later via Err().
Applies to
This method applies to the following types:
type
DistributedApplicationBuilder