XP is just a number | |
PerlMonks |
Re^5: writing a pragmaby tobyink (Canon) |
on Apr 26, 2014 at 07:18 UTC ( [id://1083903]=note: print w/replies, xml ) | Need Help?? |
That really depends on exactly what you want to do at compile time, doesn't it? Some things are easier than others.
use Moops; class Cow :rw { has name => (default => 'Ermintrude') }; say Cow->new->name
In Section
Seekers of Perl Wisdom
|
|