for $element (@{$aref}) { $accumulator += $#{$element} + 1; } [download]
In reply to RE: Finding the length of an array of arrays by tenatious in thread Finding the length of an array of arrays by target