See the discussion under $^X in perlvar for ways of discovering the path of the executable being run. That should allow you to determine whether the currently running version of perl is a native or cygwin variant in all but the most extreme cases of deliberate desception.
In reply to Re^5: Test for OS version in Perl
by BrowserUk
in thread Test for OS version in Perl
by rlambert7
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |