manishrathi has asked for the wisdom of the Perl Monks concerning the following question:
What does ${wfid} mean in here ? Is it same as $wfid ? If yes then why use this syntax ?if($templateName eq 'Deploy SELECTED WORKAREA FILES to DEV'){ $filelist = "$iwhome/tmp/filelist-${wfid}.txt"; my @files = $task->GetFiles(); open FILELIST, ">$filelist"; foreach my $file (@files){ print FILELIST "$file\n"; } close FILELIST; &deployContent($sourcePath, $targetPath, $iwodclient_cfg,$workarea +Name,$filelist);......
Is file handler FILELIST adding members to $filelist ?
&deployContent($sourcePath, $targetPath, $iwodclient_cfg,$workareaName,$filelist);
In this code, deployContent subroutine is called. But why is it preceded by & ? If we dont use & before deployContent subroutine, will it not be called ?
Thanks
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: syntax questions
by toolic (Bishop) on Mar 06, 2013 at 22:16 UTC | |
Re: syntax questions
by rjt (Curate) on Mar 07, 2013 at 01:49 UTC | |
by AnomalousMonk (Archbishop) on Mar 07, 2013 at 03:28 UTC | |
Re: syntax questions
by igelkott (Priest) on Mar 06, 2013 at 22:25 UTC |
Back to
Seekers of Perl Wisdom