Perl-Sensitive Sunglasses | |
PerlMonks |
Re: strange map behaviorby kyle (Abbot) |
on Feb 25, 2008 at 17:32 UTC ( [id://670057]=note: print w/replies, xml ) | Need Help?? |
This looks like syntax error with map in list context. The documentation for map says "{ starts both hash references and blocks, so map { ... could be either the start of map BLOCK LIST or map EXPR, LIST." This syntax works as well as the one you discovered:
In Section
Seekers of Perl Wisdom
|
|