Welcome to the Monastery | |
PerlMonks |
Re: Autoboxing ... "Yes We Can" ( or how I learned to love TIMTOWTDI ;)by tobyink (Canon) |
on Dec 13, 2013 at 22:10 UTC ( [id://1067076]=note: print w/replies, xml ) | Need Help?? |
There are a number of modules on CPAN that already do this - e.g. Safe::Isa, Fauxtobox.
use Moops; class Cow :rw { has name => (default => 'Ermintrude') }; say Cow->new->name
In Section
Meditations
|
|