Check out perlvar.
if ( $^O =~ /MSWin32/ ) { print "Windows\n"; } else { print "Not windows\n"; }
| We're not surrounded, we're in a target-rich environment! |
|---|
In reply to Re: Test for OS version in Perl
by jasonk
in thread Test for OS version in Perl
by rlambert7
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |