From: Peter Prymmer Date: Tue, 20 Feb 2001 14:51:55 +0000 (-0800) Subject: [patch perl@8841] One URL update and a possible OS Version snag for perlport.pod X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=34aaaa845400abfb74d5e84f98d1d59cdb650982;p=p5sagit%2Fp5-mst-13.2.git [patch perl@8841] One URL update and a possible OS Version snag for perlport.pod Message-ID: p4raw-id: //depot/perl@8874 --- diff --git a/pod/perlport.pod b/pod/perlport.pod index de2d855..457584c 100644 --- a/pod/perlport.pod +++ b/pod/perlport.pod @@ -675,6 +675,15 @@ DOSish perls are as follows: Windows NT MSWin32 MSWin32-ppc Cygwin cygwin +The various MSWin32 Perl's can distinguish the OS they are running on +via the value of the fifth element of the list returned from +Win32::GetOSVersion(). For example: + + if ($^O eq 'MSWin32') { + my @os_version_info = Win32::GetOSVersion(); + print +('3.1','95','NT')[$os_version_info[4]],"\n"; + } + Also see: =over 4 @@ -1225,7 +1234,7 @@ Be OS, F =item * HP 300 MPE/iX, F and Mark Bixby's web page -http://www.cccd.edu/~markb/perlix.html +http://www.bixby.org/mark/perlix.html =item *