Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Merge 2 hashes which contains duplicate Keys

by kennethk (Abbot)
on Sep 25, 2012 at 19:17 UTC ( #995622=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
    
    use strict;
    ...
        }
    }
    print Dumper (\%h1);
    
  2. or download this
    #!/usr/bin/perl -w
    
    use strict;
    ...
        push @{$h1{$x}}, $h2{$x};
    }
    print Dumper (\%h1);
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2016-06-27 02:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (335 votes). Check out past polls.