diff options
author | Craig A. Berry <craigberry@mac.com> | 2003-08-01 14:16:30 -0500 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2003-08-02 05:05:40 +0000 |
commit | 0e4142c9ef66ed123e5cb4a3557464b3ba4f2314 (patch) | |
tree | 053ec45636606d2d00cafd71b6b58d60a282de27 | |
parent | 44a689609fa78445e4c210006ef16da270d4e29e (diff) | |
download | perl-0e4142c9ef66ed123e5cb4a3557464b3ba4f2314.tar.gz |
argv case nit for VMS
From: "Craig A. Berry" <craigberry@mac.com>
Message-ID: <3F2B02DE.10207@mac.com>
p4raw-id: //depot/perl@20438
-rw-r--r-- | ext/Encode/bin/enc2xs | 2 | ||||
-rw-r--r-- | pod/pod2usage.PL | 5 | ||||
-rw-r--r-- | pod/podselect.PL | 5 |
3 files changed, 5 insertions, 7 deletions
diff --git a/ext/Encode/bin/enc2xs b/ext/Encode/bin/enc2xs index ae44c79dc7..aff29e1c08 100644 --- a/ext/Encode/bin/enc2xs +++ b/ext/Encode/bin/enc2xs @@ -159,7 +159,7 @@ my $hname = $cname; my ($doC,$doEnc,$doUcm,$doPet); -if ($cname =~ /\.(c|xs)$/) +if ($cname =~ /\.(c|xs)$/i) # VMS may have upcased filenames with DECC$ARGV_PARSE_STYLE defined { $doC = 1; $dname =~ s/(\.[^\.]*)?$/.exh/; diff --git a/pod/pod2usage.PL b/pod/pod2usage.PL index 1c1296a19f..4828d64f60 100644 --- a/pod/pod2usage.PL +++ b/pod/pod2usage.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)) =~ s/\.PL$//i; +$file .= '.COM' if ($^O eq 'VMS'); open OUT,">$file" or die "Can't create $file: $!"; diff --git a/pod/podselect.PL b/pod/podselect.PL index b6b8c9b9e4..3402b040a4 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)) =~ s/\.PL$//i; +$file .= '.COM' if ($^O eq 'VMS'); open OUT,">$file" or die "Can't create $file: $!"; |