in reply to
Idenifying the OS the perl script is runnning on
$^O
(letter O, not zero) will tell you which OS perl was built under, which in your case, should be good enough (it isn't very good at distinguishing between Windows variants).
You can read all about it in
perlvar
.
Comment on
Re: Idenifying the OS the perl script is runnning on
Download
Code
Replies are listed 'Best First'.
Re^2: Idenifying the OS the perl script is runnning on
by
ikegami
(Patriarch)
on Jul 11, 2007 at 21:48 UTC
If the program needs to know the flavour of Windows, it can call
Win32
's
GetOSVersion
after ascertaining it's running on a Win32 machine.
[reply]
[d/l]
In Section
Seekers of Perl Wisdom