Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Strange syntax question

by betterworld (Curate)
on Aug 14, 2013 at 17:16 UTC ( #1049443=note: print w/replies, xml ) Need Help??


in reply to Strange syntax question

Are you sure this is a typo? It seems to me that the author knew exactly what the code was supposed to do. Using "//" like this is a common idiom to have "default arguments".

If the "$foo" was meant to be a comment, then what should be in "$it"? An undefined "$it" would produce a warning.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1049443]
help
Chatterbox?
[davies]: I've just "approved" using syscalls in perl through inline c for at least the third time, but it still appears to me as unapproved. Is this just me?
[LanX]: erix: other side of the pond
[LanX]: davies: same problem
[Corion]: It had been approved as a Perl Monks Discussion. It should now be approvable into SoPW
[choroba]: Approved
[LanX]: hmm aproval doesn't stick after move? Or was it a race condition
[Corion]: I think you need at least one reload after moving before you can approve in the correct section

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (11)
As of 2017-01-16 15:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (151 votes). Check out past polls.