http://www.perlmonks.org?node_id=849733


in reply to Re: Compare Two Hash refs of Hashes
in thread Compare Two Hash refs of Hashes

Here is my requirement and basically want to update the Database

I want all the keys and values from the hash refs.

Compare $old and $new and

~ get any new keys which should be INSERTED into DB

~ get common keys, but again check for any changes in their values. If so UPDATE DB

~ get the missing keys in $new with that of $old. If so, DELETE from DB