From File::Temp:
$tmp = new File::Temp( UNLINK => 0, SUFFIX => '.dat' );
not to mention several other options, like
$unopened_file = mktemp( $template );
In reply to Re^2: What's the best way to avoid name collisions when creating files?
by blazar
in thread What's the best way to avoid name collisions when creating files?
by philiph
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |