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

Re: Data::Dumper and Hash of Hashes

by ferrency (Deacon)
on Aug 19, 2002 at 15:39 UTC ( [id://191206]=note: print w/replies, xml ) Need Help??


in reply to Data::Dumper and Hash of Hashes

When I've had to interpret these results, I've found that I did something like this:

my %hash = {a => 1, b => 2, c => 3}; # curlies
instead of this:
my %hash = (a => 1, b => 2, c => 3); # parens
The first assignment creates a hash with a single key which is a stringified hashref, with no value. The second assignment creates a hash with three keys and three values as expected.

See if your code may be doing this as well.

Alan

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2024-04-26 06:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found