I need to read a Win2k Event log (Application). I am running Active State (downloaded
last week) on this machine. I got the Win32::Eventlog module and setup per the
documentation (I think)
use strict;
use Win32::Eventlog;
..
$Win32::Eventlog::GetMessageText=1;
my
$evtflags=$Win32::Eventlog::EVENTLOG_BACKWARDS_READ|$Win32::Eventlog::EVENTLOG_SEQUENTIAL_READ;
.
..
$evthandle=Win32::Eventlog->new("Application")||($message=$message."Cannot open
eventlog\n");
...
...
I get a compile-time error
Can't locate object method new via package "Win32::Eventlog (perhaps you forgot to
load Win32::Eventlog
It is obviously loaded, I get no complaints about the variables used before the call
to new. I have compared this to the documentation and it is an exact match. I also
tried it without the || <statement> and got the same problem. What am I doing wrong?
Or is the documentation wrong?
Chris D. Garringer
LAN/WAN Manager
Master Certified Netware Engineer
Microsoft Certified Systems Engineer
Certified Solaris Administrator
Red Hat Certified Engineer
[EMAIL PROTECTED]
fax 713-896-5266