http://www.perlmonks.org?node_id=466060


in reply to Saturn

I saw some strange misbehaviors others have seen. I think the trick was changing the network newlines (\r\n) to local newlines (\n).