http://qs1969.pair.com?node_id=1103161


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