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