Going Bananas!!!!!!!!!!!!!!!!!!!!!!!!!!
- From: "Simon" <shmh@xxxxxxxxxxxxxx>
- Date: Sat, 30 Jun 2007 09:22:27 GMT
Hi guys!
I have this script which is driving me nuts...
=================================
use Win32;
use Win32::TieRegistry;
use Win32API::Registry;
use Win32::Registry;
$p = 'SOFTWARE\CML';
Win32::RegOpenKeyEx(&HKEY_LOCAL_MACHINE,$p,&NULL,&
KEY_QUERY_VALUE|&KEY_SET_VALUE,$hkey);
Win32::RegQueryValueEx($hkey,"Servertype",&NULL,$type,$ServerType);
Win32::RegQueryValueEx($hkey,"SystemType",&NULL,$type,$SystemType);
print "$ServerType\n";
print "$SystemType\n";
====================================
When I run this, I get:
C:\>ex.pl
Can't locate auto/Win32/RegOpenKeyE.al in @INC (@INC contains:
C:/Perl/site/lib
C:/Perl/lib .) at C:\ex.pl line 6
It seems like its having issues with the RegOpenKeyX, RegOpenQuery parts.
I have the following version of ActiveState Perl...
C:\>perl -v
This is perl, v5.8.8 built for MSWin32-x86-multi-thread
(with 50 registered patches, see perl -V for more detail)
Copyright 1987-2006, Larry Wall
I have the Win32, Win32::TieRegistry, Win32API, Win32::Registry modules on
my system.
I have reinstalled perl, and still getting the above, and getting the same
thing on multiple systems.
I must be doing something wrong.
Any help greatly appreciated.
Simon
.
- Follow-Ups:
- Re: Going Bananas!!!!!!!!!!!!!!!!!!!!!!!!!!
- From: Sisyphus
- Re: Going Bananas!!!!!!!!!!!!!!!!!!!!!!!!!!
- From: Tad McClellan
- Re: Going Bananas!!!!!!!!!!!!!!!!!!!!!!!!!!
- Prev by Date: Re: The $a have any special meanning ?
- Next by Date: Re: Simple fork examples
- Previous by thread: FAQ 3.4 How do I find which modules are installed on my system?
- Next by thread: Re: Going Bananas!!!!!!!!!!!!!!!!!!!!!!!!!!
- Index(es):
Relevant Pages
|
|