$/ = "\r\n"; while() { chomp; blabla; }