|P is for Practical|
Reading Event Viewerby jonsey80 (Initiate)
|on Jan 29, 2014 at 15:02 UTC||Need Help??|
jonsey80 has asked for the
wisdom of the Perl Monks concerning the following question:
I am new to perl and am trying to write a script which will search the system event viewer for 'disk' events, log the amount of alerts and write the message into a log file.
I have called the Win32::eventviewer module, and when i run this programme i get
Goto undefined subroutine &AutoLoader::AUTOLOAD at C:/Perl/lib/Win32/EventLog.pm line 50, <MYFILE> line 3.
I'm a bit lost at what is happening. the code is below:
calling the module:
segment of code using event viewer:
Eventually will print out the value of $i as well in a separate summary file as well as list all disk events in the eventviewer.log Any help on what im doing wrong would be appreciated - i have read the CPAN pages and anything else i can on this module but still at a lost. Thank you in advanced.