local $/ = "\r\n"; # read with Windows-style endings while () { print "Found: $_"; }