@a = ("Zero","One","Two"); @b = ("A","B"); $c[0]= \@a; $c[1]= \@b; $asize = @a; # just fine for scalar array $bsize = @c[1][0]; # but what to do here? print "Array a size is: $asize\n"; print "Array b size in c is: $bsize\n"; # What is syntax to find the size of array b in array c?
Edit Masem 2001-11-16 - CODE tags
In reply to How to find size of array in array? by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |