filename#

Return the on-disk path associated with a File::Temp object.

תקציר#

my $path = $tmp->filename;

מה מוחזר#

The filename string the object was opened against, or undef if the argument is not a recognised File::Temp handle.

דוגמאות#

my $tmp = File::Temp->new;
print "writing to ", $tmp->filename, "\n";

הבדלים מן ה-upstream#

Fully compatible with upstream File::Temp 0.2312.

ראו גם#

  • File::Temp->new - constructs the objects this method queries.

  • dirname - the analogous accessor on File::Temp::Dir.