![]() |
|
The stupid question is the question not asked | |
PerlMonks |
Re: calling anonymous objects by their namesby NetWallah (Canon) |
on Jul 25, 2003 at 22:40 UTC ( #277999=note: print w/replies, xml ) | Need Help?? |
I agree with skyknight's method - just wanted to OO-ify it a bit. Refer to "Class Data" in perltoot. You can store you %nodelist in the class (Not individual objects). Your object "new" method adds an object reference by doing: Your "connect" method can then easily access a named object and do something like:
In Section
Seekers of Perl Wisdom
|
|