Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: Capture Contents AND Overwrite without Opening Twice?by MidLifeXis (Monsignor) |
on Oct 08, 2014 at 20:01 UTC ( [id://1103214]=note: print w/replies, xml ) | Need Help?? |
Also watch for race conditions between the open and the truncate/write. You could end up with a mangled log file or a lost update. --MidLifeXis
In Section
Seekers of Perl Wisdom
|
|