Slight variation.
@array2 = map{ /^(?:chop_me_off)?(.*)$/; $1 } @array;
Examine what is said, not who speaks.
The 7th Rule of perl club is -- pearl clubs are easily damaged. Use a diamond club instead.
In reply to Re: how could I use map here?
by BrowserUk
in thread how could I use map here?
by LameNerd
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |