in reply to "Default" method
Hi,
you can do that with overloading the stringification operator in your class.
use overload ( '""' => sub { shift->to_string; }, ); [download]
where to_string is the method returning a string representation.
Regards McA