perldotcom
perldotcom copied to clipboard
Problems with the guide to windows and unit file line ending conversion
trafficstars
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.