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.
In Section
Seekers of Perl Wisdom