Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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?
[1nickt]: That's why I asked if you are using DateTime. It has a large number of supporting modules (the author likes the term 'eco-system') so if you are already creating a DateTime obj from your dates, this module would read in the mnoron-formatted 1s seamlessly
[TCLion]: when I put the date together it looks like : 2017-Feb-24 (month is the problem)
[1nickt]: good luck, then.
[TCLion]: looking at DateTime documentation in monastery now

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (11)
As of 2017-03-23 15:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (288 votes). Check out past polls.