in reply to make a new list by substituting an old list

Is there something wrong with this, then?
my @new = map {s/foo/bar/g; $_} @old;
--Chris

e-mail jcwren

Replies are listed 'Best First'.
RE: (jcwren) RE: make a new list by substituting an old list
by merlyn (Sage) on Sep 10, 2000 at 21:49 UTC
      See what happens when you let small children play with sharp regexps? <G>

      (I knew I should have asked Ovid about that first...)

      --Chris

      e-mail jcwren