note
AnomalousMonk
<p>
Possibly the [doc://chomp]-ed <c> $line </C> still has a carriage-return at the end of it.
</P>
<c>
c:\@Work\Perl\monks>perl -wMstrict -le
"my $line = qq{01234567\x0d};
print qq{It was $line!!!\n};
"
!!!was 01234567
</C>
<p>
This might arise if, e.g., the file had been created on a Windows system (with <c> \x0d\x0a </C> line-enders) and then transferred to a *nix system without proper newline translation. On the *nix system, <c>chomp</C> will take care of the <c> \x0a </C> but leave the <c> \x0d </C> untouched.
</P>
<p>
(BTW: It may or may not be <i>too</I> stupid, but the reason I know about this sort of thing is that I've done it myself — and more than once!)
</P>
1090256
1090256