The alternative is to read the whole file into memory, make the changes in memory and then clobber the content of the original file and write the new content to it.
In reply to Re^3: using s///g;
by Laurent_R
in thread using s///g;
by ravi45722
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |