P is for Practical | |
PerlMonks |
Re^4: Problem with Inheriting a Super Classby PyrexKidd (Monk) |
on Sep 20, 2011 at 00:00 UTC ( [id://926814]=note: print w/replies, xml ) | Need Help?? |
Ok, so what is the recommended way of generating accessor/mutator methods? ^This seems to be the prevailing idiom , and I *really* don't want to code them by hand (or write a program that codes them by hand) since very time I add/remove a parameter I'll have to add/remove the accessor. My first thought, was to set it so it does not ignor the calling class/object like so:
This didn't work.
Again, no change in result.
Surprise, this had no affect either.
Not surprisingly, no change again...
I guess I don't understand what you mean. How do you reference the object without referencing the object? (Which is what $self is right? a reference to the object.) really, thank you for all of your help.
In Section
Seekers of Perl Wisdom
|
|