in reply to Re^2: missing character when reading input file
in thread missing character when reading input file

Added this $line =~ s/\r//; and it fixed the issue. Newlines/carriage returns can be a huge pain.