Welcome to the Monastery | |
PerlMonks |
Re: "Default" methodby McA (Priest) |
on Oct 08, 2014 at 12:17 UTC ( [id://1103161]=note: print w/replies, xml ) | Need Help?? |
Hi, you can do that with overloading the stringification operator in your class.
where to_string is the method returning a string representation. Regards
In Section
Seekers of Perl Wisdom
|
|