in reply to Conflicting usage recommendations: File::Temp and File::Copy
However, the File::Copy process is likely to get clobbered at some point, unless the Java does an atomic update. The Perl example is IO::AtomicFile. If an atomic update is used, then using filehandles will ensure you have a complete file. If this Java process doesn't use a atomic update method, then it's possible you will copy an incomplete or even corrupt file.
As others have mentioned, the context of how you use these modules, dictates whether the lines you quoted conflict. In this instance it may be safer to read from a filename and write to a filehandle. YMMV.
--
Barbie | Birmingham Perl Mongers | http://birmingham.pm.org/
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Conflicting usage recommendations: File::Temp and File::Copy
by kilinrax (Deacon) on Sep 19, 2003 at 17:37 UTC |