in reply to Unix and Windows CRLF vs LF
while (<FILE>) { s/\r?\n$//; # If there is no \r, so what? # Random code } [download]