From the camel...
You can use $^0, which is a Perl special variable that holds the OS name.
Or....
Use the module Config.pm and use the variable $Config{osname} Rich36There's more than one way to screw it up...
I'm not sure but AFAIK $^O will be 'MSWin32' for all Windows OSes. So it doesn't help.
Config.pm should contain information about computer where Perl was built. In most cases for Win32 Perl it is some build server at ActiveState. So it doesn't help also.
It appears you are correct...
I got "MSWin32" as a value for both $^O and $Config{osname} running on NT, so my prior comment should be stricken/ignored in the context of this question.
I should really test before I post unless I know for sure what I'm talking about...
/me --
Rich36There's more than one way to screw it up...