* Smylers <[EMAIL PROTECTED]> [2003-11-20 11:50]: > This, however, is irritating: > > my @new = map { s:e/$pattern/$replacement/; $_ } @old; > > I forget the C<; $_> far more often than I like to admit and > end up with an array of integers instead of modified strings. > So I'd like a more elegant way of writing that -- but I don't > think making the return value of C<s///> more complicated (and > duplicating data in the process) would be a nett gain.
s:e/$pattern/$replacement/ for my @new = @old; But that without nested for modifiers (will those work?) this isn't be applicable in the middle of a map map map map chain.. -- Regards, Aristotle "If you can't laugh at yourself, you don't take life seriously enough."