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.
In reply to Re^3: Searching and Replacing file content within directory
by 7stud
in thread Searching and Replacing file content within directory
by King0
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |