in reply to Re: objects are references, right?
in thread objects are references, right?

Thanks! I've been using a more baroque version of the code I free-typed in here for a while now, and I've been checking with Data::Dumper already, but somehow I'm having difficulty with its coding style sometimes :)

This clarifies things - it's the way I thought, but sometimes it's nice to have confirmation.

Replies are listed 'Best First'.
Re^3: objects are references, right?
by QM (Parson) on Jul 06, 2005 at 17:38 UTC
    I tend to use the x debugger command, which in some cases makes it more obvious:
    DB<2> x $child 0 Node=HASH(0x1c58f28) 'parent' => Node=HASH(0x1d9b770) 'parent' => undef DB<3> x $parent 0 Node=HASH(0x1d9b770) 'parent' => undef
    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.

    -QM
    --
    Quantum Mechanics: The dreams stuff is made of