Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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 taking refuge in the Monastery: (9)
As of 2014-09-15 11:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (147 votes), past polls