Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

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

by japhy (Canon)
on Mar 24, 2005 at 17:50 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://442135]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2024-04-26 02:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found