I think IO::AtomicFile would come in handy here. :-)
PS: I see by your quotes that you're a Windows user. You might want to provide a port of your oneliner that works with unix-like shells, or at least mention it.
In reply to Re: Re: Re^2: appending to a file
by revdiablo
in thread appending to a file
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |