good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: syntax questionsby toolic (Bishop) |
on Mar 06, 2013 at 22:16 UTC ( [id://1022104]=note: print w/replies, xml ) | Need Help?? |
What does ${wfid} mean in here ? Is it same as $wfid ? If yes then why use this syntax ?In your code, yes, ${wfid} is the same as $wfid. You would need the curlies if you had this instead (I deleted the dot):
Without the curlies, you'd have a different variable: $wfidtxt:
Refer to Scalar value constructors Is file handler FILELIST adding members to $filelist ?FILELIST is a file handle. Your open statement opens the file named $filelist for output. The print adds lines to the file. Generally, you need not use &. Refer to Prototypes for gory details.
In Section
Seekers of Perl Wisdom
|
|