Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

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 chilling in the Monastery: (10)
As of 2015-11-25 01:01 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (666 votes), past polls