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.
In reply to Re^2: Perl OOP
by hardburn
in thread Perl OOP
by newbio
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |