Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: syntax questions

by toolic (Chancellor)
on Mar 06, 2013 at 22:16 UTC ( #1022104=note: print w/ replies, xml ) Need Help??


in reply to syntax questions

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):
$filelist = "$iwhome/tmp/filelist-${wfid}txt";

Without the curlies, you'd have a different variable: $wfidtxt:

$filelist = "$iwhome/tmp/filelist-$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.


Comment on Re: syntax questions
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1022104]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (6)
As of 2014-09-21 19:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (175 votes), past polls