There's more than one way to do things | |
PerlMonks |
Re: How is the default "Input Record Separator" set?by Marshall (Canon) |
on Mar 15, 2021 at 17:54 UTC ( [id://11129694]=note: print w/replies, xml ) | Need Help?? |
I am also a Windows user. The text I/O layers will take out <CR> and what Perl sees is just <LF>. So \n for input is just one character, even on Windows. For output, Windows will emit <CR><LF> for an \n. On Unix, just a <LF>.
I am curious as to why you think that something has changed? Update: Haukex replied while I was writing this. I agree with what he said. Unless you are using binmode, you will never see a <CR>. I am not even sure that you can even set $/ to CRLF. Please show some code where you think that you did that.
In Section
Seekers of Perl Wisdom
|
|