There's more than one way to do things | |
PerlMonks |
Re: Pattern not manipulating file outputby hipowls (Curate) |
on Feb 20, 2008 at 05:22 UTC ( [id://668951]=note: print w/replies, xml ) | Need Help?? |
Open a tempory file, say "$file.tmp", write to that and then rename it to $file Put at the start of the script Check you open the file handle
In Section
Seekers of Perl Wisdom
|
|