EBCDIC: the non-printable characters are different.
[p5sagit/p5-mst-13.2.git] / installperl
index c4cab78..6b702bd 100755 (executable)
@@ -245,7 +245,7 @@ if (($Is_W32 and ! $Is_NetWare)  or $Is_Cygwin) {
         chmod(0755, "$installbin/$_");
       };
       { 
-               open (LD2, "$installbin/ld2");
+               open (LD2, ">$installbin/ld2");
                print LD2 "#!/bin/sh\n#\n# ld wrapper, passes all args to perlld;\n#\n"
                          . "for trythis in $installbin/perl\ndo\n  if [ -x \$trythis ]\n"
                          . "  then\n    \$trythis $installbin/perlld \"\$\@\"\n"