in reply to how could I use map here?

Call me Mister Obvious, but this works too:
@array2 = @array1; s/^CHOP_ME_OFF_// for @array2;

--
“Every bit of code is either naturally related to the problem at hand, or else it's an accidental side effect of the fact that you happened to solve the problem using a digital computer.”
M-J D

Replies are listed 'Best First'.
Re: Re: how could I use map here?
by ihb (Deacon) on Feb 10, 2003 at 03:26 UTC

    This is for those that like to keep it one line, and map()ers usually do. :)   s/^CHOP_ME_OFF_// for @array2 = @array1; (Not that it's likely that I'd do that myself -- I prefer to have my assignment a bit more towards BOL...)

    ihb