note
ikegami
<p>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, <c>sysread</c> acts as if <c>binmode</c> is on, even when it's not. When <c>binmode</c> is on, "<c>\n</c>" is not the end of line marker, yet you're splitting on "<c>\n</c>".
<p>Ok, fine, you won't have a problem in Windows until it's time to [doc://chomp|<c>chomp</c>], when you'll find the "<c>\r</c>" is not being removed along with the "<c>\n</c>".
522791
523052