in reply to Re^4: Test for OS version in Perl
in thread Test for OS version in Perl
If you want to take advantage of crappy shortcuts, then be prepared to face the associated inconvenience :-)Rob@desktop2 ~/pscrpt $ cat try.pl #!C:/perl58_M/bin/perl print $^X, "\n"; print $^O; Rob@desktop2 ~/pscrpt $ perl try.pl /usr/bin/perl.exe cygwin Rob@desktop2 ~/pscrpt $ ./try.pl C:\perl58_M\bin\perl.exe MSWin32 Rob@desktop2 ~/pscrpt
|
|---|