This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Note why switchF1.t and switchp.t do not use test.pl.
[perl5.git] / Porting / manisort
index 1c02120..6cf7d92 100644 (file)
@@ -50,6 +50,7 @@ for (my $ii = 0; $ii < $#manifest; $ii++) {
 if (defined($outfile)) {
     open(my $OUT, '>', $outfile)
         or die("Can't open output file '$outfile': $!");
+    binmode($OUT);
     print($OUT join("\n", @sorted), "\n");
     close($OUT) or die($!);
 }