numify#

Overload handler for 0+ — numify a File::Temp object to its reference address.

Synopsis#

my $tmp = File::Temp->new;
print 0 + $tmp, "\n";                       # the refaddr
$tmp == $other_handle                        # compares by identity

What you get back#

The integer refaddr of the underlying reference — the same value Scalar::Util::refaddr would return.

Differences from upstream#

Fully compatible with upstream File::Temp 0.2312.

See also#

  • STRINGIFY — companion overload used for string contexts.