chinamox has asked for the wisdom of the Perl Monks concerning the following question:
I am trying to use Data::Dumper to look at the data in a hash of hashes which looks something like:
$hash{$w1}{$w2} = { total_counts => $tot_counts, words => { $w3 => $count, } }
I have tried using:
print Dumper($hash);and all I get on the command line is:
$VAR1 = undef;I suspect this is pretty basic, but could someone please tell me what I am fogetting? Thanks!
-moxProblem solved. This one was more than simple, it was just stupid.
Mamas: Don't let your babies grow up to be the kind of programmers who leave their 'use strict' and 'use warnings' at home when they cut and paste subroutines into test scripts outside of their mother programs!
Thanks for the help all!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Using Data::Dumper with a HoH
by davorg (Chancellor) on Oct 30, 2006 at 11:28 UTC | |
by bart (Canon) on Oct 30, 2006 at 11:50 UTC | |
by chinamox (Scribe) on Oct 30, 2006 at 11:55 UTC | |
|
Re: Using Data::Dumper with a HoH
by liverpole (Monsignor) on Oct 30, 2006 at 11:45 UTC | |
by chinamox (Scribe) on Oct 30, 2006 at 12:02 UTC | |
by Fletch (Bishop) on Oct 30, 2006 at 14:31 UTC | |
|
Re: Using Data::Dumper with a HoH
by cog (Parson) on Oct 30, 2006 at 11:24 UTC |