diff options
author | Perl 5 Porters <perl5-porters@africa.nicoh.com> | 1996-03-17 10:18:21 +0000 |
---|---|---|
committer | Charles Bailey <bailey@genetics.upenn.edu> | 1996-03-17 10:18:21 +0000 |
commit | f360dba143c864a53fdb1573b40795cfe2331220 (patch) | |
tree | 261c1c2d605178381f828a22d0dc812732babf5e /utils | |
parent | 79dd614e1e8c3b0e4ed35016e6971240b606da64 (diff) | |
download | perl-f360dba143c864a53fdb1573b40795cfe2331220.tar.gz |
Use $^O
Diffstat (limited to 'utils')
-rw-r--r-- | utils/h2ph.PL | 3 | ||||
-rw-r--r-- | utils/pl2pm.PL | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/utils/h2ph.PL b/utils/h2ph.PL index 3b882fee0b..370aa87213 100644 --- a/utils/h2ph.PL +++ b/utils/h2ph.PL @@ -16,8 +16,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: $!"; diff --git a/utils/pl2pm.PL b/utils/pl2pm.PL index 4e69036499..e8277bb673 100644 --- a/utils/pl2pm.PL +++ b/utils/pl2pm.PL @@ -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: $!"; |