Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Counting the elements of a hash of arrays of arrays

by bigj (Monk)
on May 14, 2003 at 18:46 UTC ( [id://258201]=note: print w/replies, xml ) Need Help??


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

my @a = $results{$addr};
returns an array with a single element, that then contains all the @output's. But if I try to 'scalar @a' I get '1', and if I scalar @a[0] or scalar($a[0]) I get a bunch of ARRAY refs.

Try instead the same what you you have done to push at the array.

my @a = @{$result{$addr}};

Greetings,
Janek

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://258201]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (5)
As of 2024-04-24 08:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found