|
|
| "be consistent" | |
| PerlMonks |
Re^2: Why is my code producing weird output?by BillKSmith (Monsignor) |
| on Sep 01, 2023 at 18:49 UTC ( [id://11154223]=note: print w/replies, xml ) | Need Help?? |
|
When you know that you have windows line separators, I prefer to handle them the same way that perl on windows does. Use the "IO Layer" crlf. Add the statement binmode STDIN, ':crlf'; before your input loop.
Bill
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||