in reply to Re^2: Searching and Replacing file content within directory
in thread Searching and Replacing file content within directory

Thanks for confirming that. Just one correction: there's never any "overwriting" of the original file--a new file is always created. It's just that when you assign a blank string to $^I, perl doesn't save a copy of the original file before renaming the new file to the original file name.

  • Comment on Re^3: Searching and Replacing file content within directory