Going Bananas!!!!!!!!!!!!!!!!!!!!!!!!!!



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





.



Relevant Pages

  • Re: use Win32::TieRegistry if ($^O =~ /win32/i)
    ... Registry Package if I'm on Windows? ... Assuming you have a recent version of perl (I think 5.8.0 or higher, ... Is this the error when the OS is Win32 or when the OS is NOT Win32 ?? ... But now I don't see the reference. ...
    (comp.lang.perl.misc)
  • Re: date problem
    ... Purl Gurl wrote: ... > At a DOS command line, test this hack, ... I have already found out the inadequacies of the win32 'date' command ... As it turns out I am already using Time::HiRes in my perl program so ...
    (comp.lang.perl.misc)
  • Question about building modules on W2K
    ... I have two environments here -- development and production. ... for and I have the go-ahead to load Win32. ... I did 'perl Makefile.PL' and the ... So I went to a box which has MS Visual C++ on it and 'nmake' worked ...
    (comp.lang.perl.modules)
  • Re: how to enforce mutual exclusion in win32
    ... Perl script in win32. ... The Perl interpreter I use is ActivePerl. ... You can place explicit locks using the threads::shared ... Fear is the mind-killer. ...
    (comp.lang.perl.misc)
  • Re: self-tailing output checker
    ... >> script, combined with the use of teeshould help significantly. ... Tee would not allow either of these. ... I've gotten it working in Perl to my satisfaction now. ... For Win32 forking with Perl, use IPC::Run, which works on unix or win32. ...
    (comp.unix.programmer)