There are several options, perhaps the easiest is to write to a temporary file first, and then move this to the location of the old file.
Or you could use Tie::File - that changes the file that it's tied to.
In reply to Re: reg perl substitution
by moritz
in thread reg perl substitution
by pret_23_1
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |