$/ = "\r\n"; while() { chomp; blabla; } #### open FILE, "dos2unix $file|" or die;