in reply to access hash of hashes?
Hashes (such as %$data) can only contains scalars for values. So $data->{followersperdate} can't possibly hold a hash as you believe. Note the curlies in the Data::Dumper output. It holds a reference to a hash.
my $followers = $data->{followersperdate}; for my $date ( keys %$followers ) { my $id = $followers->{$date}; ... }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: access hash of hashes?
by Anonymous Monk on Sep 11, 2009 at 17:48 UTC |