in reply to Objects: how to get parent object from child $self reference ?

First off, based on your replies, you aren't dealing with the problem right. You're confusing parent-child in terms of classes (where @ISA is used) and parent-child in terms of objects (like a Board object is the parent of a Piece object).

If you want to have the latter, you will need to tell the child object who its parent is when you create it. That is the only way.

------
We are the carpenters and bricklayers of the Information Age.

Please remember that I'm crufty and crochety. All opinions are purely mine and all code is untested, unless otherwise specified.

  • Comment on Re: Objects: how to get parent object from child $self reference ?