in reply to Re: Perl OOP
in thread Perl OOP
you could have data members in each hash which are references to the other
Careful with this one. You'll want to weaken the references (with Scalar::Util::weaken() or some such) so that Perl's refcounting GC doesn't trip over it.
"There is no shame in being self-taught, only in not trying to learn in the first place." -- Atrus, Myst: The Book of D'ni.
|
|---|