http://qs321.pair.com?node_id=277999


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:

$nodelist{$NewObjectName}=$self;
Your "connect" method can then easily access a named object and do something like:
$self->{LEFT_LINK} = $nodelist{$NameOfLinkedNode};