Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (7)
As of 2017-03-23 22:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (294 votes). Check out past polls.