in reply to Adding value to hash

You're not showing us the correct piece of your code. The error message mentions a scalar called $temp_hash, but you're not using that variable in this piece of code.

--
<http://www.dave.org.uk>

"The first rule of Perl club is you do not talk about Perl club."
-- Chip Salzenberg