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 (Archbishop) 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.