NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Full support (Score:2, Insightful)
For the record you have my full support on the use of map in void context. I use if quite often and even find a certain pleasure knowing that it would not pass a certain guru [perlmonks.org]'s code reviews ;--).
mirod
Reply to This
Re:Full support (Score:2, Informative)
Re:Full support (Score:2)
Re:Full support (Score:1)
Re:Full support (Score:2, Interesting)
I didn't think much about it because I didn't know the optimization was supposed to have been done. Plus we all found shorter solutions later on that didn't have the memory problem.
Re:Full support (Score:2)
I second that as well, in fact map in void context should be compulsory in Perl code to decide whether it's any good ;)
The only time I've been bitten by it is on one of those occasions when I threw a map in naturally, only to notice later that a for loop would have been much simpler. But that's trivial to fix...
-- Robin Berjon [berjon.com]