in reply to Re: how could I use map here?
in thread how could I use map here?

or even simpler: @array2 = map /^(?:chop_me_off)?(.*)/, @array2; m// in list context returns a list of $1, $2, ...

-- Hofmator