$arrayRef is a genuine array reference, with one element per row. An array in scalar context evaluates to the number of elements, so just dereference in scalar context:
my $rows = @{$arrayRef};
After Compline,
Zaxo
In reply to Re: Counting Number of Arrays in an Array Reference
by Zaxo
in thread Counting Number of Arrays in an Array Reference
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |