![]() ![]() There is both a function interface and an object-oriented interface. POSIX functions: use File::Temp qw/ :POSIX / Ĭompatibility functions: $unopened_file = File::Temp::tempnam( $dir, $pfx ) #DESCRIPTIONįile::Temp can be used to create and open temporary files in a safe way. ($fh, $file) = mkstemps( "tmpfileXXXXXX", $suffix) ($fh, $file) = mkstemp( "tmpfileXXXXX" ) MkTemp family: use File::Temp qw/ :mktemp / The following interfaces are provided for compatibility with existing APIs. $dir = File::Temp->newdir() # CLEANUP => 1 by default $tmp = File::Temp->new( UNLINK => 0, SUFFIX => '.dat' ) $fh = File::Temp->new(TEMPLATE => $template) ($fh, $filename) = tempfile( DIR => $dir ) ($fh, $filename) = tempfile( $template, TMPDIR => 1 ) ($fh, $filename) = tempfile( $template, SUFFIX => '.dat') ![]() ($fh, $filename) = tempfile( $template, DIR => $dir) Version 0.2311 #SYNOPSIS use File::Temp qw/ tempfile tempdir / File::Temp - return name and handle of a temporary file safely #VERSION
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |