The first answer looks good to me.
In reply to Re^2: Adding to a hash reference by Anonymous Monk in thread Adding to a hash reference by Anonymous Monk