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.
In reply to Re^2: Can't get hash keys to print
by ikegami
in thread Can't get hash keys to print
by Daren
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |