in reply to calling anonymous objects by their names
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:$nodelist{$NewObjectName}=$self;
$self->{LEFT_LINK} = $nodelist{$NameOfLinkedNode};
|
---|
In Section
Seekers of Perl Wisdom