Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Data::Dumper and Hash of Hashes

by ferrency (Deacon)
on Aug 19, 2002 at 15:39 UTC ( #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
Node Status?
node history
Node Type: note [id://191206]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2019-11-14 05:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Strict and warnings: which comes first?



    Results (76 votes). Check out past polls.

    Notices?