You can see by the hash addresses that $parent and $child{'parent'} point to the same hash. This is not immediately obvious with Data::Dumper.DB<2> x $child 0 Node=HASH(0x1c58f28) 'parent' => Node=HASH(0x1d9b770) 'parent' => undef DB<3> x $parent 0 Node=HASH(0x1d9b770) 'parent' => undef
-QM
--
Quantum Mechanics: The dreams stuff is made of
In reply to Re^3: objects are references, right?
by QM
in thread objects are references, right?
by rvosa
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |