in reply to My pattern for "in-place edit" for many files
in thread One-shot code critique

Another possibility would be to use File::Searcher.

UPDATE: Doesn't work too well on windows though. After mucking around a bit I decided to keep using simpler search and replace with $^I.

  • Comment on Re: My pattern for "in-place edit" for many files