![]() |
|
go ahead... be a heretic | |
PerlMonks |
Re: declaring accessor methods from a listby ferreira (Chaplain) |
on Apr 27, 2007 at 11:31 UTC ( #612352=note: print w/replies, xml ) | Need Help?? |
As AK108 pointed out, Class::Accessor is a nice module to do what you want and like it a lot as well. With it, your code would turn to be:
and you will get the accessors and the new constructor for free.
In Section
Seekers of Perl Wisdom
|
|