Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^2: Copy an hash modifying some selected values

by Anonymous Monk
on Nov 08, 2018 at 09:58 UTC ( #1225401=note: print w/replies, xml ) Need Help??


in reply to Re: Copy an hash modifying some selected values
in thread Copy an hash modifying some selected values

Maybe I don't get it but to me this is comparing two hashes instead of searching into a hash a creating a copy of it with modifications where required.
  • Comment on Re^2: Copy an hash modifying some selected values

Replies are listed 'Best First'.
Re^3: Copy an hash modifying some selected values
by hippo (Canon) on Nov 08, 2018 at 10:23 UTC

    Quite so. I assumed the copy was not the part you were having problems with. See eg merlyn's deep_copy sub as a module-less way to do that or something like Clone::PP. %hash1 is assumed to be the copy. HTH.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2019-02-15 21:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I use postfix dereferencing ...









    Results (95 votes). Check out past polls.

    Notices?