binmode(TXTIN); binmode(UNIXOUT); while(defined($linein = )) { chomp($linein); print UNIXOUT "$linein\012"; }