Thanks for your reply. I don't get your comment "Instead, you probably should have an instance variable in each Account that references the User object that it is associated with." Surely, User::Account belongs to User? and I don't understand how you'd create an instance variable in each Account that references the User object - how do you do that? Presumably you are referring to the $self in "return User::Account->new($self, $account_id); ".
I'll work on your idea and see where I get.
In reply to Re^2: Perl OOP help for OOP newbie
by Anonymous Monk
in thread Perl OOP help for OOP newbie
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |