This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
h2ph broken in 5.004_02
[perl5.git] / utils / splain.PL
index 53954db..75b5e2f 100644 (file)
@@ -13,10 +13,9 @@ use File::Basename qw(&basename &dirname);
 
 # This forces PL files to create target in same directory as PL file.
 # This is so that make depend always knows where to find PL derivatives.
-chdir(dirname($0));
-($file = basename($0)) =~ s/\.PL$//;
-$file =~ s/\.pl$//
-       if ($^O eq 'VMS' or $^O eq 'os2');  # "case-forgiving"
+chdir dirname($0);
+$file = basename($0, '.PL');
+$file .= '.com' if $^O eq 'VMS';
 
 # Open input file before creating output file.
 $IN = '../lib/diagnostics.pm';