perldotcom icon indicating copy to clipboard operation
perldotcom copied to clipboard

Problems with the guide to windows and unit file line ending conversion

Open j256 opened this issue 2 years ago • 0 comments

This is about the following perl page. Thanks for it.

https://www.perl.com/article/53/2013/12/14/The-ultimate-guide-to-Windows-and-Unix-file-line-ending-conversion-in-Perl/

Things are very different when we talk about perl -e 'binmode(STDOUT); print "\n";' versus perl -e 'binmode(STDOUT); print "\n";' > x. When the output is going to a file, I've not been able to disable binary mode with binmode(STDOUT);. Interestingly perl -e 'binmode(STDOUT); print "\n";' | cat > x works.

j256 avatar Apr 20 '22 21:04 j256