Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Strange syntax question

by betterworld (Curate)
on Aug 14, 2013 at 17:16 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1049443]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2025-12-06 12:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your view on AI coding assistants?





    Results (85 votes). Check out past polls.

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.