stringify#

Overload handler for "" — stringify a File::Temp object to its filename.

Synopsis#

my $tmp = File::Temp->new;
print "wrote to $tmp\n";                    # calls STRINGIFY

What you get back#

The object’s pathname as a string, or the empty string if the filename is not known.

Differences from upstream#

Fully compatible with upstream File::Temp 0.2312.

See also#

  • filename — explicit accessor with the same result.

  • NUMIFY — companion overload used for numeric comparisons.