is there a (cygwin?) method delivering the current version of windows?

Hughes, Bill
Mon Jan 24 17:01:00 GMT 2005

Igor Pechtchanski wrote:
> On Mon, 24 Jan 2005, Yitzchak Scott-Thoennes wrote:
>> Ok; you're wrong :)
> That's hardly a correction... :-p
> But I was, indeed, wrong.  The real solution was to run
> $ perl -mWin32 -wle'print for Win32::GetOSVersion'
> otherwise Win32::GetOSVersion is interpreted as a bareword.
I first tried the original version when first posted:
perl -wle'print for Win32::GetOSVersion'
which did nothing. It now works, giving :
Service Pack 4

but when I try
perl -mWin32 -wle'print for Win32::GetOSVersion'
I get 
Can't locate in @INC (@INC contains: /usr/lib/perl5/5.8/cygwin ...

  oo  // \\      "De Chelonian Mobile"
 (_,\/ \_/ \     TortoiseSVN
   \ \_/_\_/>    The coolest Interface to (Sub)Version Control
   /_/   \_\

This e-mail transmission is strictly confidential and intended solely
for the person or organisation to whom it is addressed. It may contain
privileged and confidential information and if you are not the intended
recipient, you must not copy, distribute or take any action in reliance
on it. If you have received this email in error, please reply to the
sender as soon as possible and delete the message. Please note that we
are able to, and reserve the right to, monitor e-mail communications
passing through our network.

The views expressed in this email are not that of the company unless
specified within the message.

The inclusion of this footnote indicates that the mail message and any
attachments have been checked for the presence of known viruses.

If you have any comments regarding our policy please direct them to
This email has been scanned for all viruses by the MessageLabs Email
Security System. For more information on a proactive email security
service working around the clock, around the globe, visit

Unsubscribe info:
Problem reports:

More information about the Cygwin mailing list