Perl: the Markov chain saw | |
PerlMonks |
Re^5: How can you sysread an entire file?by ikegami (Patriarch) |
on Jan 13, 2006 at 22:10 UTC ( [id://523099]=note: print w/replies, xml ) | Need Help?? |
I linked to a thread that discusses the bug in the two sentence paragraph in which I mentioned the bug. In some versions of Perl, sysread acts as if binmode is on, even when it's not. When binmode is on, "\n" is not the end of line marker, yet you're splitting on "\n". Ok, fine, you won't have a problem in Windows until it's time to chomp, when you'll find the "\r" is not being removed along with the "\n".
In Section
Seekers of Perl Wisdom
|
|