Just another Perl shrine | |
PerlMonks |
Re^2: wantarray alternativeby tqisjim (Beadle) |
on Jul 10, 2013 at 21:24 UTC ( [id://1043569]=note: print w/replies, xml ) | Need Help?? |
I don't seem to be answering as fast as you're asking. If the explanation is that map is being called in scalar context, then the following is unexpected:
Even though map is called in an array context, the results don't change. Very clever solution, yours. Clever, but not elegant.
In Section
Seekers of Perl Wisdom
|
|