Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I have a complex array like this:
my %a = (one => [ ['a','b'],['c','d'] ])
My question is how do I find the length of $a{one}, which is 2 in this case. I have tried scalar(@a{one}) and some other things.
scalar(@a{one}) gives ARRAY(0x805e654)
Thanks, Dave
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Array length
by dragonchild (Archbishop) on Oct 15, 2004 at 04:25 UTC | |
|
Re: Array length
by mifflin (Curate) on Oct 15, 2004 at 04:29 UTC | |
|
Re: Array length
by pg (Canon) on Oct 15, 2004 at 05:15 UTC |