Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: help to get hash elements

by linuxer (Curate)
on Aug 26, 2012 at 22:13 UTC ( #989884=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    # untested:
    my @urls;
    ...
        push @urls, $hash{$outer}->{$inner}->{url};
      }
    }
    
  2. or download this
    for my $outer ( keys %hash ) {
        for my $inner ( keys %{ $hash{$outer} } ) {
            push @urls, map { $_->{url} }  @{ $hash{$outer}->{$inner} }
        }
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://989884]
help
Chatterbox?
[Lady_Aleena]: There is the RolePlaying:: WorldBuilding:: WorldBuildersGuide book suite and the RolePlaying:: WorldBuilding:: HighLevelCampaigns suite.
[LanX]: pity there are no t or k in zentara

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (10)
As of 2017-05-24 22:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?