After looking at the documentation for Win32::EventLog and looking into the contents of it's .pm file on my system, I believe that the Clear function is expecting a file name of a new file to create.
If you're not wanting to keep the log contents, you can let the Clear function dump to a temporary file and then delete the temp file. I haven't used it myself, but File::Temp might help make it easier to do that.
In reply to Re: Win32::EventLog's clear method without filename.
by dasgar
in thread Win32::EventLog's clear method without filename.
by dannyd
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |