perl 5.003_01: lib/Carp.pm
[p5sagit/p5-mst-13.2.git] / x2p / s2p.PL
index fe82b02..29864b4 100644 (file)
@@ -15,8 +15,7 @@ use File::Basename qw(&basename &dirname);
 chdir(dirname($0));
 ($file = basename($0)) =~ s/\.PL$//;
 $file =~ s/\.pl$//
-       if ($Config{'osname'} eq 'VMS' or
-           $Config{'osname'} eq 'OS2');  # "case-forgiving"
+       if ($^O eq 'VMS' or $^O eq 'os2');  # "case-forgiving"
 
 open OUT,">$file" or die "Can't create $file: $!";
 
@@ -29,7 +28,7 @@ print OUT <<"!GROK!THIS!";
 $Config{'startperl'}
     eval 'exec perl -S \$0 "\$@"'
        if 0;
-\$startperl = $Config{startperl};
+\$startperl = "$Config{startperl}";
 !GROK!THIS!
 
 # In the following, perl variables are not expanded during extraction.