in reply to Acessing an array element in a hash

Edit:Silly me, dragonchild is right and I should read what I write, not just copy & paste; corrected that character :-)

As far as I understand this on a first glance, you're printing an array, so thats normal behaviour you're showing (assuming I'm right on my assumptions on what values $key_hash, $key, $oid carry).

I guess you want to access element 1 in the nested array you're dereferencing with something like
@${$key_hash{$key}{$oid}[0]}[1] to get to the 1.

regards,
tomte


Replies are listed 'Best First'.
Re2: Acessing an array element in a hash
by dragonchild (Archbishop) on Mar 26, 2003 at 15:23 UTC
    No. That's an array-slice. q.v. my reply in this thread to see the correct answer.

    ------
    We are the carpenters and bricklayers of the Information Age.

    Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement.

    Please remember that I'm crufty and crochety. All opinions are purely mine and all code is untested, unless otherwise specified.