|
|
| laziness, impatience, and hubris | |
| PerlMonks |
Re: syntax error with map in list contextby Aristotle (Chancellor) |
| on Nov 20, 2005 at 17:52 UTC ( #510260=note: print w/ replies, xml ) | Need Help?? |
|
There are two ways to unconfuse perl about whether you mean a block or an anonymous hash, depending on which one it is:
You’ll find that if you write your code as map {; ... } ..., it works. Makeshifts last the longest.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||