summaryrefslogtreecommitdiff
path: root/lib/CGI.pm
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2000-12-11 22:50:59 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2000-12-11 22:50:59 +0000
commitac1855b3e7d7100eed1eddcfad6fb51e0f2e6351 (patch)
tree07d2905b3411cb08db2160c08931ca66bbab249b /lib/CGI.pm
parent95c31fe33ee6822711c5d165d868e95b4502fd4b (diff)
downloadperl-ac1855b3e7d7100eed1eddcfad6fb51e0f2e6351.tar.gz
Tune further the OS detection of CGI.
p4raw-id: //depot/perl@8086
Diffstat (limited to 'lib/CGI.pm')
-rw-r--r--lib/CGI.pm14
1 files changed, 6 insertions, 8 deletions
diff --git a/lib/CGI.pm b/lib/CGI.pm
index f49b618074..617c605b85 100644
--- a/lib/CGI.pm
+++ b/lib/CGI.pm
@@ -107,19 +107,17 @@ unless ($OS) {
$OS = $Config::Config{'osname'};
}
}
-if ($OS=~/win32/i) {
+if ($OS =~ /^MSWin/i) {
$OS = 'WINDOWS';
-} elsif ($OS=~/vms/i) {
+} elsif ($OS =~ /^VMS/i) {
$OS = 'VMS';
-} elsif ($OS=~/bsdos/i) {
- $OS = 'UNIX';
-} elsif ($OS=~/dos/i) {
+} elsif ($OS =~ /^dos/i) {
$OS = 'DOS';
-} elsif ($OS=~/^MacOS$/i) {
+} elsif ($OS =~ /^MacOS/i) {
$OS = 'MACINTOSH';
-} elsif ($OS=~/os2/i) {
+} elsif ($OS =~ /^os2/i) {
$OS = 'OS2';
-} elsif ($OS=~/epoc/) {
+} elsif ($OS =~ /^epoc/i) {
$OS = 'EPOC';
} else {
$OS = 'UNIX';