Subject: | "Not a CODE reference..." |
Hello Mark, jeffa here :)
I recently recommend ArrayHashMonster on PerlMonks, but when i tried it out myself, i received a couple of errors:
my $monster = ArrayHashMonster->new(\@arry,\%hash);
print $monster->[3],"\n";
print $monster->{D},"\n";
"Not a CODE reference at ArrayHashMonster.pm (lines 32 and 36)"
So, i changed lines 32 and 36 to use braces and brackets respectively instead of parens. I have a strong gut feeling that i should not have done this, but there is no synopsis example code in the documentation. Am i missing something? Tell me the answer and i will reward you with a patch containing documentation for this module. ;)
Jeff Anderson