in reply to Re: search and replace text in multiple files in a directory
in thread search and replace text in multiple files in a directory

I think the script you are trying to write can be wrote with Tie::File . Read the documentation about it.
  • Comment on Re^2: search and replace text in multiple files in a directory