Mail Archives: cygwin/2005/01/24/11:46:12
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/
- Raw text -