In addition to what jdporter is saying, I'd like to add that this is probably faster and clearer:
@new = <TEST>; s/something/something/ for @new;
I haven't Benchmarked it or anything, but I'm pretty sure it's faster than map {s/regex/stuff/} — either way, it's probably more readable.
-Paul
In reply to Re^2: Using regex in Map function
by jettero
in thread Using regex in Map function
by narashima
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |