However, if I create the array this way it doesn't work: #!/usr/bin/perl my @ar1; $ar1 = (["one", "two"], ["three", "four", "five"]); my $count = scalar @{ $ar1[1] }; print "count = $count\n";