Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^3: Merge 2 hashes which contains duplicate Keys

by BrowserUk (Pope)
on Sep 26, 2012 at 05:24 UTC ( #995706=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    { 
       one => [ [ 1, 2 ], 3 ];
       ...
    }
    
  2. or download this
    { 
       one => [ [ [ 1, 2 ], 3 ], 4 ];
       ...
    }
    
  3. or download this
    { 
        one => '1 2 3 4',
        ...
    }
    
  4. or download this
    #!/usr/bin/perl -w
     use strict;
    ...
         $h1{ $x } .=  ' ' . $h2{ $x };
     }
     print Dumper (\%h1);
    
  5. or download this
    #!/usr/bin/perl -w
     use strict;
    ...
         $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://995706]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (12)
As of 2014-12-22 11:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (116 votes), past polls