in reply to how could I use map here?
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: how could I use map here?
by Hofmator (Curate) on Feb 07, 2003 at 20:42 UTC | |
|
Re: Re: how could I use map here?
by ihb (Deacon) on Feb 08, 2003 at 01:22 UTC |