My guess is that the lines in your input file terminate with a carriage return, but perhaps no line feed, so the hash keys in output are effectively being overwritten by the rest of that line. Try stripping trailling carriage returns ("\r") from the lines when you read them and see if that solves it for you.
Addendum: eg. replace the chomp $row; line with $row =~ s/[\r\n]+$//; or similar.
In reply to Re: Can't get hash keys to print
by hippo
in thread Can't get hash keys to print
by Daren
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |