Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
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 musing on the Monastery: (11)
As of 2017-11-23 15:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (336 votes). Check out past polls.

    Notices?