Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com X-VirusChecked: Checked X-Env-Sender: Bill DOT Hughes AT cox DOT co DOT uk X-Msg-Ref: server-7.tower-14.messagelabs.com!1106585161!33802929!1 X-StarScan-Version: 5.4.5; banners=cox.co.uk,-,- Message-ID: From: "Hughes, Bill" To: "'cygwin AT cygwin DOT com'" , Yitzchak Scott-Thoennes Subject: RE: is there a (cygwin?) method delivering the current version of windows? Date: Mon, 24 Jan 2005 16:43:35 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-IsSubscribed: yes Igor Pechtchanski wrote: > On Mon, 24 Jan 2005, Yitzchak Scott-Thoennes wrote: ..snip.. >> 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. Odd. 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 5 0 2195 2 but when I try perl -mWin32 -wle'print for Win32::GetOSVersion' I get Can't locate Win32.pm in @INC (@INC contains: /usr/lib/perl5/5.8/cygwin ... etc. Bill -- ___ oo // \\ "De Chelonian Mobile" (_,\/ \_/ \ TortoiseSVN \ \_/_\_/> The coolest Interface to (Sub)Version Control /_/ \_\ http://tortoisesvn.tigris.org 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 postmaster AT cox DOT co DOT uk ________________________________________________________________________ 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 http://www.messagelabs.com ________________________________________________________________________ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/