in reply to nested hashes or object oriented
Use Data::Dumper to print the hashes out so you can see what gets populated.
use Data::Dumper; print Dumper(\%agency);
That is also the weirdest nested hash syntax I have ever seen. I think it's supposed to look more like this:
$agency{$e4}->{$e7}->{$e6}++;
That change starts to create an interesting hash once it is printed with Data::Dumper. Give it a shot.
Addendum:
Other things I've noticed about your code.
$agency{$e3}->{$e4}->{$e7}->{$e6}++;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: nested hashes or object oriented
by ctilmes (Vicar) on Jun 11, 2003 at 21:32 UTC |