Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

File::Temp

Native Rust implementation built into the interpreter. Runtime: P5. See original documentation for the full Perl reference.

Functions

dir_stringify

The invocant is a blessed PV ref — deref to get the PV SV, return its string value. perl5: use overload ‘“”’ => sub { ${$_[0]} }

filename

return path of a temp file object

new

OO constructor, returns IO SV

newdir

OO constructor for temp directories.

Returns a blessed reference to a PV SV whose string value is the dirname. The PV SV is blessed into File::Temp::Dir and has stringify overload so “$obj” returns the dirname path.

tempdir

returns directory path

tempfile

returns ($fh, $filename)