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

Hmm, I don't think you can exclude something from inside a map, but you could place a grep before the map call. Basically, the grep would remove anything you didn't want before it's passed to the map function. So, you would have something like:

@array = map { # do stuff } grep { m/good stuff/ } @array;

This would pass anything item that matched "good stuff" to the map function for further processing.

Update After reading through the other comments posted, I guess I should not be surprised that map is more powerful than I had initially expected. I, personally, happen to think the map/grep combo is clearer code in this example, but the additional power of map is certainly nice to know.