the File::Temp approach is about the same length and the intent is more immediately obvious
I disagree on the latter. new is the worst name for a method, for a module like this, so a line like this:
is always enough to make me go "WTF...?".my $fh = File::Temp->new
I wish the module author had put some more inspiration in the name for the constructor, like Tim Bunce used "connect" in DBI instead of the plain, boring and somewhat obscure "new". I like this a lot better.
In reply to Re^3: Safe Temp Files
by bart
in thread Safe Temp Files
by gmock
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |