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

Solved the problem with the statement below, in the $x=~/2005 loop:
if(!defined $save{$first}){ $save{$first}=undef;}
Thanks Transient, for your time.