From 0e9de459b923410f2c7af3887364c6d4cd0df24e Mon Sep 17 00:00:00 2001 From: Jarkko Hietaniemi Date: Mon, 1 Sep 2003 14:14:49 +0000 Subject: From Craig Berry, following the example of the other podxxx.PL in relying on basename($0, '.PL') to Do The Right Thing with regard to the case of the extension, which could be either .pl or .PL on VMS depending on version-specific features. p4raw-id: //depot/perl@20983 --- pod/podselect.PL | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'pod/podselect.PL') diff --git a/pod/podselect.PL b/pod/podselect.PL index b6b8c9b9e4..d3e204effc 100644 --- a/pod/podselect.PL +++ b/pod/podselect.PL @@ -15,9 +15,8 @@ use Cwd; # This is so that make depend always knows where to find PL derivatives. $origdir = cwd; chdir(dirname($0)); -($file = basename($0)) =~ s/\.PL$//; -$file =~ s/\.pl$// if ($^O eq 'os2' or $^O eq 'dos'); # "case-forgiving" -$file =~ s/\.pl$/.com/ if ($^O eq 'VMS'); # "case-forgiving" +$file = basename($0, '.PL'); +$file .= '.com' if $^O eq 'VMS'; open OUT,">$file" or die "Can't create $file: $!"; -- cgit v1.2.1