NEWBIE: Using Win32::Eventlog under Activestate Perl 5.6 (Win XP) 
Author Message
 NEWBIE: Using Win32::Eventlog under Activestate Perl 5.6 (Win XP)

Source code:

#c:\perl\perl.exe
use Win32::Eventlog;

$log = Win32::Eventlog->new();
$log->Read(EVENTLOG_FORWARDS_READ,0,%info);

I tried this source code via the command line (c:\perl\bin\> perl
..\source\event.pl) but i keep getting this error.

Error:
Can't locate object method "new" via package "Win32::Eventlog" (perhaps you
forgot to load "Win32::Eventlog"?) at ..\source\event.pl line 11.

What do i have to do to use this win32 class successfully?  I thought i
loaded the class with "use win32:eventlog"???

Thanks
M

P.S. soz about cross post - not sure which group :-\



Mon, 28 Feb 2005 15:29:05 GMT  
 NEWBIE: Using Win32::Eventlog under Activestate Perl 5.6 (Win XP)

Quote:

> Source code:

> #c:\perl\perl.exe
> use Win32::Eventlog;

L-----------------^

and in remainder of code.

--
Bob Walton



Tue, 01 Mar 2005 04:05:14 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. NEWBIE: Using Win32::Eventlog under Activestate Perl 5.6 (Win XP)

2. Win NT EventLog (Win32::EventLog)

3. Mail::Sender bad file descriptor (Apache for Win32 on win2k, ActiveState Perl 5.6, Win2k SMTP server)

4. ptkdb and ActiveState Perl 5.6 Win32

5. mod_perl with activestate perl 5.6 on win32?

6. ptkdb and ActiveState Perl 5.6 Win32

7. Path problem using activestate per 5.6 on windows 95

8. Using locales with ActiveState 5.6

9. Using $ to match end of line - Perl v5.6.1 Cygwin Win XP

10. ActiveState Build 315 Win32:EventLog - Time Confusion?

11. Win32::EventLog problems (ActiveState 5.22)

12. ActiveState Perl 5.6. and Language Localization

 

 
Powered by phpBB® Forum Software