in reply to Test for OS version in Perl

Devel::CheckOS

Replies are listed 'Best First'.
Re^2: Test for OS version in Perl
by DrHyde (Prior) on Oct 22, 2007 at 09:35 UTC
    In particular the original poster will want to check for 'MicrosoftWindows' or 'Unix'. The former includes both MSWin32 and Cygwin, the latter covers the whole broad church of Unix in one line of code, which is far easier than checking whether $^O is linux, or freebsd, or netbsd, or solaris, or ...