Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Re: Re: OO Perl: Methods To Reference Hash

by halley (Prior)
on Jun 03, 2003 at 21:03 UTC ( #262788=note: print w/replies, xml ) Need Help??


in reply to Re: Re: OO Perl: Methods To Reference Hash
in thread OO Perl: Methods To Reference Hash

Whenever you're trying to debug data structures, I recommend using Data::Dumper. This will help you see the structures in Perl syntax, and will avoid any bugs you may introduce in your own home-spun "dumping" methods.

use Data::Dumper; ... print Dumper \%hashFoo; print Dumper $refHashFoo;

Other useful learning materials are in perlreftut and perllol.

--
[ e d @ h a l l e y . c c ]

Replies are listed 'Best First'.
Re: Re: Re: Re: OO Perl: Methods To Reference Hash
by P0w3rK!d (Pilgrim) on Jun 03, 2003 at 21:34 UTC
    The problem is not with the data, it is with the set() and get() methods that manipulate the hash within the object.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://262788]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2020-01-25 04:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?