http://www.perlmonks.org?node_id=998129


in reply to Re^3: Efficiency of map vs. more verbose basic/fundamental code
in thread Efficiency of map vs. more verbose basic/fundamental code

I like this answer.
In recent Perl, a "for" and a "map" statement will be almost identical in performance.

Disk I/O statements especially can confuse benchmarks. That is because the Disk/File System has caching algorithms. I have one program that takes 7 seconds for the first search. The subsequent searches take like <1 second.