Pathologically Eclectic Rubbish Lister | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Is there a reason why you want to copy the original file to process it rather than say, renaming it to some temporary name and outputting the results of your munging to a new file with the original name? For example: Is it necessary that the original file be available to other processes whilst the munging is in progress? The nice thing about ranaming is that it is (under most circumstances), an atomic operation at the OS level, which closes many possibilities for problems. Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham"Think for yourself!" - Abigail In reply to Re: Copying a file to a temporary file
by BrowserUk
|
|