in reply to $^O eq 'Win32' is a bad idea.
in thread use Win2000; and alike
You are probably right. I have no way of testing this, but I'll start changing die if $^O eq 'Win32' to die if $^O =~ /win32|dos/i in my scripts ;) (Come to think of it, Windows.pm would allow for a nice no Windows :)
On $^O knowing the type of Windows: if I recall correctly, $^O is hardcoded into perl, and Windows 95 programs can run under Windows 2000. I may be wrong, though.
- Yes, I reinvent wheels.
- Spam: Visit eurotraQ.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(wil) Re: $^O eq 'Win32' is a bad idea.
by wil (Priest) on Jun 06, 2002 at 10:14 UTC | |
by demerphq (Chancellor) on Jun 06, 2002 at 15:47 UTC | |
|
Re: Re: $^O eq 'Win32' is a bad idea.
by demerphq (Chancellor) on Jun 06, 2002 at 10:07 UTC |