>I have a hash of arrays. Here is a sample of one of the elements
>
>$hoa{key}=[2,somestring,someotherstring];
>
>If I where to print it like this
> print "$#{hoa{key}}"
>It print 2.
I'm pretty sure this isn't your actual code.
>From how I understand this $# is dereferencing and should print what
>ever is contained. In a hash of arrays does it just default to the first
>element of the first array and display it?
$# does not dereference. $# produces the index of the last item in the
array,
since there are 3 items in your array at indexes 0, 1, and 2, it prints 2.
>Why does this return 2.
You probably want something like:
print @{$hoa{key}};
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]