in reply to Get Array Dimensions

There's no requirement that an "array" be regular, but chaining down the 0'th element of each subarray, we get:
my @dims = (); my $thing = \@array; while (ref $thing eq "ARRAY") { push @dims, scalar @$thing; $thing = $thing->[0]; } print "@dims\n";

-- Randal L. Schwartz, Perl hacker