Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: update a hash with a hash

by rjbs (Pilgrim)
on Jul 15, 2004 at 02:33 UTC ( #374497=note: print w/replies, xml ) Need Help??


in reply to update a hash with a hash

It's not as efficient as friedo's solution, but I generally find myself writing:
%hash1 = (%hash1, %hash2);
In other words, "hash1 is itself, plus all of hash2, using hash2's values where they conflict."
rjbs

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://374497]
help
Chatterbox?
[erix]: can you drop a name? :)
[karlgoethebier]: Corion: "...didn't leave business cards" Those guys came from Muränia?
[Corion]: karlgoethebier: Heh - naah, I think they are just very fresh out of university. At least they seem to have hired one person as key accountant who has done enterprise consulting etc. before :)
[Corion]: erix: It wouldn't be nice of me to publically shame and name ;)
[Corion]: I'm interested in how their product actually works. It uses websockets between two non-browser components, so there are some weird technology decisions, or rather, I assume the product started out as something completely different :)

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (10)
As of 2018-04-19 12:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?