in reply to Re: Safe Temp Files
in thread Safe Temp Files
advantage of open is that its syntax is simpler
I'm not convinced of that. Apart from the "use" line, the File::Temp approach is about the same length and the intent is more immediately obvious.
open(my $fh, "+>", undef) or die ...
use File::Temp (); my $fh = File::Temp->new or die ...
-xdg
Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Safe Temp Files
by bart (Canon) on Dec 05, 2006 at 11:27 UTC | |
by xdg (Monsignor) on Dec 05, 2006 at 13:14 UTC |