in reply to Re^4: Hash reference as a parameter
in thread Hash reference as a parameter

So, in this case the code I posted first works fine, right? What I am confused about is why you want to pass things like this:
my_sub(\%hash);
instead of like this:
my_sub(%hash);
But, it really doesn't matter, if the solution works for you just use it :)

Hrm, do you want the changes to be cumulative or to reset each time?

Replies are listed 'Best First'.
Re^6: Hash reference as a parameter
by ramya2005 (Scribe) on Sep 12, 2005 at 23:17 UTC
    Thanks! Your solution works.

    Finally I did this to achieve what I wanted