Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: merging two hashes

by ikegami (Pope)
on Feb 08, 2006 at 20:53 UTC ( #528930=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @a = (
       @{$s->{aa}->{'1'}},
       @{$s->{bb}->{'1'}},
       @{$s->{cc}->{'1'}},
    );
    
  2. or download this
    my @a = map { @$_ } (
       $s->{aa}->{'1'},
       $s->{bb}->{'1'},
       $s->{cc}->{'1'},
    );
    
  3. or download this
    my @a = map { @{$s->{$_}->{'1'}} } keys %$s;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (8)
As of 2014-07-23 05:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (133 votes), past polls