in reply to Re: Perl OOP help for OOP newbie
in thread Perl OOP help for OOP newbie
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Perl OOP help for OOP newbie
by 7stud (Deacon) on Jun 02, 2011 at 02:54 UTC | |
|
Re^3: Perl OOP help for OOP newbie
by NetWallah (Canon) on Jun 01, 2011 at 23:06 UTC |