in reply to accessing elements of reference to hash of arrays

G'day John,

Look very carefully at the double-quotes in the code that you posted.

Compare:

$ perl -Mstrict -Mwarnings -le 'my $x = []; print ref($x) eq "ARRAY" ? + q{aref} : q{other}' aref

with:

$ perl -Mstrict -Mwarnings -le 'my $x = []; print ref($x) eq “ARRAY” ? + q{aref} : q{other}' Unrecognized character \xE2; marked by <-- HERE after ef($x) eq <-- HE +RE near column 30 at -e line 1.

Perhaps the editor you're using has some sort of auto-correct or smart-quote mechanism configured.

-- Ken