Something that stands out right off the bat is you want to loop over the keys not the entire hash, like so...
for my $key(keys %HoL) { &{$HoL{$key}[0]}; }
Also, you cannot embed subs inside strings without resorting to trickery, so instead you can one of the following ...
print "$key -> ", &{$HoL{$key}->{$i}}, "\n"; print "$key -> @{[ &{$HoL{$key}->{$i}} ]}\n"; # voodoo!
--k.
In reply to Re: Hash of Hash of Listed subroutines
by Kanji
in thread Hash of Hash of Listed subroutines
by c
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |