I tried unsuccessfully doing this with map.for my $value ( @my_array ) { $value = s/^CHOP_ME_OFF_//g; push ( @my_array_2, $value ); }
@my_array_2 = map( @my_array, s/^CHOP_ME_OFF_//g );What should I have done instead?
In reply to how could I use map here? by LameNerd
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |