First, $a and $b are special variables, and you shouldn't ever name your variables with those names. Never ever.
Second, this line has a couple of problems:
for my $b ( 0 .. $#{$array_of_lists->{$b}} )
You're using $b on the same line where it's declared with my, and you're using $array_of_lists as a hash reference, when you mean to use the %array_of_lists hash. I think what you mean is "$#{ $array_of_lists{$a} }" but again, rename $a and $b. Even at that, your %array_of_lists keys start at 1, so you really want this:
for my $b ( 1 .. scalar @{$array_of_lists{$a}} )
There are other places you're misusing %array_of_lists, but I won't mention them all. This should get you on the right track.
You might also want to look at perlreftut, perlref, and References quick reference.
In reply to Re: working with hashes of arrays
by kyle
in thread working with hashes of arrays
by gman1983
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |