in reply to Re: storing a file in 2d array
in thread storing a file in 2d array

... count the number of elements in a row ...

To accumulate a sum of the number of elements in a referenced array, a better way IMHO would be
    $sum += @$row;


Give a man a fish:  <%-{-{-{-<