Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re: Hashes... Light switch isn't coming on

by blue_cowdawg (Monsignor)
on Dec 12, 2012 at 18:10 UTC ( #1008547=note: print w/ replies, xml ) Need Help??

in reply to Hashes... Light switch isn't coming on

foreach $primary( @primary ) { print "\t$primary\n"; foreach $secondary( @secondary ) { print "\t\t$secondary\n"; foreach $tertiary( @tertiary ) { print "\t\t\t$tertiary\n"; #%HoH = ( $primary => $secondary => $tertiary); #%HoH = {$primary}{$secondary} => $tertiary); # $HoH{$primary} -> {$secondary} = [] unless ref($HoH{$primary} -> {$secondary}) eq 'ARRA +Y'; push @{$HoH{$primary} -> {$secondary}},$tertiary; } } }
Was that what you were looking for?

Peter L. Berghold -- Unix Professional
Peter -at- Berghold -dot- Net; AOL IM redcowdawg Yahoo IM: blue_cowdawg

Comment on Re: Hashes... Light switch isn't coming on
Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (8)
As of 2014-12-25 04:12 GMT
Find Nodes?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?

    Results (159 votes), past polls