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

Still not a lot of info to do | go on, but let me suggest you have "invisible" characters lurking in your input:

c:\@Work\Perl\monks>perl -wMstrict -MData::Dump -le "my $seq = qq{what is wrong with this\x0dline}; print $seq; dd $seq; " line is wrong with this "what is wrong with this\rline"
Some kind of data dump (Data::Dumper, Data::Dump) might be informative. (Data::Dumper is core and so should already be installed.)


Give a man a fish:  <%-{-{-{-<

Replies are listed 'Best First'.
Re^4: missing character when reading input file
by Eily (Monsignor) on Sep 11, 2018 at 16:19 UTC

    For this to work with Data::Dumper you need to set $Data::Dumper::Useqq = 1; Otherwise the \r isn't replaced by visible chars.

    perl -MData::Dumper -E "print Dumper qq<a\rb>" b';R1 = 'a
    perl -MData::Dumper -E "$Data::Dumper::Useqq = 1; print Dumper qq<a\rb +>" $VAR1 = "a\rb";
    One of the main reasons to prefer Data::Dump over Data::Dumper for debugging :)

    80 chars really sounds like a display limit though, rather than an invisible char