note
McA
<p>Hi,</p>
<p>you can do that with overloading the stringification operator in your class.</p>
<code>
use overload (
'""' => sub { shift->to_string; },
);
</code>
<p>where <code>to_string</code> is the method returning a string representation.</p>
<p>Regards<br/>
McA</p>
1103159
1103159