in reply to Finding the length of an array in a hash of arrays

Try $#{$valid{$key}}.


-pete
"Pain heals. Chicks dig scars. Glory lasts forever."

Replies are listed 'Best First'.
Re: Re: Finding the length of an array in a hash of arrays
by vek (Prior) on Aug 26, 2002 at 13:28 UTC
    Beware though that this method will not return the number of elements in the array, only the last index position. If the array only has one element,  $#{$valid{$key}} will return 0.

    -- vek --