summaryrefslogtreecommitdiff
path: root/utils/splain.PL
diff options
context:
space:
mode:
Diffstat (limited to 'utils/splain.PL')
-rw-r--r--utils/splain.PL6
1 files changed, 2 insertions, 4 deletions
diff --git a/utils/splain.PL b/utils/splain.PL
index 53954db65a..ef7c457dda 100644
--- a/utils/splain.PL
+++ b/utils/splain.PL
@@ -13,10 +13,8 @@ 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');
# Open input file before creating output file.
$IN = '../lib/diagnostics.pm';