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 reply to Re: "Default" method
by McA
in thread "Default" method
by v_melnik
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |