Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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?
[LanX]: The King is dead. .. :(

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2017-08-20 18:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Who is your favorite scientist and why?



























    Results (317 votes). Check out past polls.

    Notices?