while (<>) { chomp; #removes line endings of both varieties print "$_\n"; #prints with this platform's line endings. }