in reply to Re^4: Problem with DBM hash of anonymous arrays
in thread Problem with DBM hash of anonymous arrays

Yes this is wrong :-) It parses like:
$PAHASH->{$key}->[$index] # hashref-> hash ->array
While you want
$PAHASH{$key}->[$index] # hash element ->array
Which can also be written as
$PAHASH{$key}[$index]
update: Or maybe you want
${$PAHASH{$key}[$index]}
If you really want the value as a reference to a scalar (I don't see the point of doing it)

Replies are listed 'Best First'.
Re^6: Problem with DBM hash of anonymous arrays
by travisbickle34 (Beadle) on May 17, 2005 at 13:16 UTC
    Ah, cheers. I think I have it straight in my head now :-) I can get it to work with an ordinary hash table now, just not the DBM hash! Always problems!
        It looks like you're right - thanks! If only I knew how to implement it with DBM::Deep. Hopefully I'll pick it up fairly quickly...