Perl Monk, Perl Meditation | |
PerlMonks |
Re^4: Modules for autogenerating accessor/mutator methodsby magog (Beadle) |
on Jun 05, 2005 at 20:17 UTC ( [id://463767]=note: print w/replies, xml ) | Need Help?? |
Hmmm... That's a good point. It's the same thing with Class::Accessor::Lvalue. When you want to upgrade to a full method, you're stuck: there doesn't seem to be an easy way to make an lvalue subroutine that has access to the rvalue. Update: But you're right - Attribute::Property does allow you to do all the processing you want, as long as you follow it's rules. So it's probably enough. Update: For instance, you could do:
Michael
In Section
Seekers of Perl Wisdom
|
|