KW.pm | Only the Lonely | #11 |
File::Temp
use File::Temp; my $fh = tempfile; # temporary file is opened, in suitable directory print $fh $big_data; exit; # temporary file is automatically deleted.
($fh, $filename) = tempfile;
($fh, $filename) = tempfile($template); ($fh, $filename) = tempfile($template, SUFFIX => $suffix) ($fh, $filename) = tempfile($template, UNLINK => 1);
|
<< Previous | Index | Next >> | Copyright © 2005 Daniel Allen |