Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: importing all the values stored in an HoH into an array

by themage (Friar)
on Oct 31, 2006 at 12:08 UTC ( [id://581477]=note: print w/replies, xml ) Need Help??


in reply to importing all the values stored in an HoH into an array

hi chinamox,

I think you need more or less this:

my @array=(); for my $word (keys %{$has{$w1}->{$w2}}) { push @array, ($word) x $hash{$w1}->{$w2}->{$word}; }


Replies are listed 'Best First'.
Re^2: importing all the values stored in an HoH into an array
by chinamox (Scribe) on Oct 31, 2006 at 14:30 UTC

    Thank you for your help. I ended up using something very similar to your example.

    cheers

    -mox

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2024-04-25 23:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found