A package overloads stringification operator:
use overload '""' => sub { ... };
But in some places I want to fallback to default stringification behaviour.
What should I do to such objects to get Object=HASH(0x7693218)
string again?
print ${ \$obj }; # Did not help
overload provides
overload::StrVal($arg)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With