Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
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 examining the Monastery: (3)
As of 2017-02-20 04:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (293 votes). Check out past polls.