in reply to How do you determine the size of array reference?

scalar @{ $arrayref }

Pretty much wherever you use @array you can substitute in @{$arrayref} (and the related invocation for the last index of the array ref is $#{ $arrayref }, but you really shouldn't be using that to determine the size).

Replies are listed 'Best First'.
Re^2: How do you determine the size of array reference?
by apl (Monsignor) on Jul 02, 2007 at 17:11 UTC
    Thanks, Fletch. That echo you hear is me slapping my forehead...