in reply to
Re^4: Turning foreach into map?
in thread
Turning foreach into map?
And the context of the (last) expression in the block. For
for
, it's in void context, for
grep
it's in scalar context, for
map
it's in list context.
Comment on
Re^5: Turning foreach into map?
In Section
Seekers of Perl Wisdom