Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: error creating hash of array

by mwah (Hermit)
on Nov 04, 2007 at 18:39 UTC ( [id://648898]=note: print w/replies, xml ) Need Help??


in reply to error creating hash of array

Another variant:

... my %HoA; push @{ $HoA{ $_->{TABLE_TYPE} } }, $_->{TABLE_NAME} for values %HoH; ...

Remap array to scalar if only one entry

... for( values %HoA ) { $_ = $_->[0] if @$_ == 1 } ...

Regards

mwa

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (3)
As of 2024-04-16 14:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found