|Think about Loose Coupling|
Accessing deeply burried arrays of hashesby Mandor (Pilgrim)
|on Jan 25, 2001 at 03:50 UTC||Need Help??|
Mandor has asked for the
wisdom of the Perl Monks concerning the following question:
Hi, This is somehow a follow up to "Getting keys of a hash element"
Okay, what I want to do is something like this :
The problem with this is that perl puts out this :
(F) You used an array where a hash was expected, but the array has no information on how to map from keys to array indices.
You can do that only with arrays that have a hash reference at index 0.
What I want is to be able to access this key and get just a plain array with normal position markers (0 = $a, 1 = $b, etc.) back.
I am glad about any help. Thanks.