Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: Dynamic Variables?by tobyink (Canon) |
on Sep 10, 2013 at 23:14 UTC ( [id://1053381]=note: print w/replies, xml ) | Need Help?? |
... or even...
use Moops; class Cow :rw { has name => (default => 'Ermintrude') }; say Cow->new->name
In Section
Seekers of Perl Wisdom
|
|