in reply to Re: Number of elements in array
in thread Number of elements in array

This counts the number of rows. The OP was counting the number of columns.

Of course, it's possible that the OP did actually want the number of rows...

perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'