|
|
| XP is just a number | |
| PerlMonks |
Re: Speed comparison of foreach vs grep + mapby Corion (Patriarch) |
| on May 25, 2025 at 18:01 UTC ( [id://11165115]=note: print w/replies, xml ) | Need Help?? |
|
Without looking at your timings, the second script is doing something different than the first script:
This invokes the regex engine instead of comparing $_ to falsy values. Maybe you meant to write something like:
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||