in reply to Counting the elements of a hash of arrays of arrays

my %results = ( addr => [ [ 1 .. 5 ] ] ); print "count is - ", scalar @{ $results{addr}->[0] }; __output__ count is - 5
See. tye's References quick reference and perlreftut for more info.
HTH

_________
broquaint

Replies are listed 'Best First'.
Re: Re: Counting the elements of a hash of arrays of arrays
by Clownburner (Monk) on May 14, 2003 at 19:18 UTC
    This just about did it. As it turns out I had to do scalar @{ $results{$addr} } to get the count of the @outputs, but it's brilliant.

    Now why couldn't I think of that? :-P
    "Non sequitur. Your facts are un-coordinated." - Nomad