in reply to Updating a same hash using recurrsion ...

hi mvkarthik,
Please use <code> around your code and you might also want to check How do I post a question effectively?

If you tell me, I'll forget.
If you show me, I'll remember.
if you involve me, I'll understand.
--- Author unknown to me