diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 1999-12-30 19:36:21 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 1999-12-30 19:36:21 +0000 |
commit | c9ce37aecd0e1f7271370137e323df19ca939619 (patch) | |
tree | 1dfe8394d8d59d29e2e16f92670d8684560337e3 /utils | |
parent | 53129d29569a85455957955379fd49abdaaf8185 (diff) | |
download | perl-c9ce37aecd0e1f7271370137e323df19ca939619.tar.gz |
avoid CRLF in byteloadable files created by perlcc
p4raw-id: //depot/perl@4741
Diffstat (limited to 'utils')
-rw-r--r-- | utils/perlcc.PL | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/utils/perlcc.PL b/utils/perlcc.PL index a8c6ab4fc0..734b20a667 100644 --- a/utils/perlcc.PL +++ b/utils/perlcc.PL @@ -257,20 +257,19 @@ sub _createCode local($") = " -I"; - open(GENFILE, "> $generated_file") || die "Can't open $generated_file: $!"; - if ($backend eq "Bytecode") { require ByteLoader; + open(GENFILE, "> $generated_file") || die "Can't open $generated_file: $!"; + binmode GENFILE; print GENFILE "#!$^X\n" if @_ == 3; print GENFILE "use ByteLoader $ByteLoader::VERSION;\n"; + close(GENFILE); $output_switch ="a"; } - close(GENFILE); - if (@_ == 3) # compiling a program { chmod $generated_file, 0777 & ~umask if $backend eq "Bytecode"; |