in reply to Re^3: Hash w/ multiple values + merging
in thread Hash w/ multiple values + merging

Yes, it worked just fine. Thank you, biohisham! Could you also please guide me for the merge operation? What I have in mind is the following: 1. Start iterating over the keys of hash1 2. Check if any of these keys match with the keys of hash2 3. if matched, push values %hash2 into values%hash1 Is this the right way to do it?
  • Comment on Re^4: Hash w/ multiple values + merging

Replies are listed 'Best First'.
Re^5: Hash w/ multiple values + merging
by Anonymous Monk on Feb 07, 2010 at 23:11 UTC
    That way is correct, I don't know however if it is the best way out there so I am not sure if it is computationally expensive or optimal... Anyways, take a look at the code I posted once again for I've already added this information using the same idea !!!...