Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^3: Concerning hash operations (appending, concatenating)

by japhy (Canon)
on Mar 24, 2005 at 17:50 UTC ( #442135=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $hash{$_} = $otherhash{$_} for grep !exists $hash{$_}, keys %otherhash
    +;
    
  2. or download this
    {
      my @new_keys = grep !exists $hash{$_}, keys %otherhash;
      @hash{@new_keys} = @otherhash{@new_keys};
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (15)
As of 2014-07-24 15:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (161 votes), past polls