http://www.perlmonks.org?node_id=457597


in reply to Re^6: Lost hash values
in thread Lost hash values

Try printing the $first key as well as the value. Then you will be able to verify what keys you are storing the values against.