in reply to "foreach" is to "next" as "map" is to ???

grep is a good way to do it another way would be:
@modified_list = map { $_ =~ /good stuff/ : #do stuff here ? () } @array;
or the map grep combo:
@modified_list = map { #do stuff here } grep { /good_stuff/ } @array
-enlil