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.

Replies are listed 'Best First'.
Re^8: Lost hash values
by stephen_isa (Initiate) on May 16, 2005 at 23:08 UTC
    Hi, Sorry, forgot to mention that the DATES in the outputs are $first keys. Updated the print statements in the original code.
      Solved the problem with the statement below, in the $x=~/2005 loop:
      if(!defined $save{$first}){ $save{$first}=undef;}
      Thanks Transient, for your time.