From: Jarkko Hietaniemi Date: Thu, 6 Jun 2002 18:57:39 +0000 (+0000) Subject: Document that $^O in Win32 is a bit lacking in details. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=916d64a3a14e0d933ef0f4e8592bd46ac973efe6;p=p5sagit%2Fp5-mst-13.2.git Document that $^O in Win32 is a bit lacking in details. p4raw-id: //depot/perl@17044 --- diff --git a/pod/perlvar.pod b/pod/perlvar.pod index ae72617..07ee0db 100644 --- a/pod/perlvar.pod +++ b/pod/perlvar.pod @@ -1003,6 +1003,12 @@ built, as determined during the configuration process. The value is identical to C<$Config{'osname'}>. See also L and the B<-V> command-line switch documented in L. +In Windows platforms the $^O is not very helpful since it is always +MSWin32 (or MSWin64, when applicable), it doesn't tell the difference +between 95/98/ME/NT/2000/XP/CE. Use Win32::GetOSVersion() (see L) +and other means (like for example the presence/absence of some files) to +distinguish those. + =item ${^OPEN} An internal variable used by PerlIO. A string in two parts, separated