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