in reply to Re: Can't get hash keys to print
in thread Can't get hash keys to print

It's a Windows file. The lines end with CR+LF. I'd use

$row =~ s/\s+\z//;

You could also "fix" the file with command line util dos2unix.