|
|
|
Clear questions and runnable code get the best and fastest answer |
|
| PerlMonks |
Re: Strange syntax questionby betterworld (Curate) |
| on Aug 14, 2013 at 17:16 UTC ( [id://1049443]=note: print w/replies, xml ) | Need Help?? |
|
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.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||