Hi folks. It seems like there were a couple of old questions regarding Win32::Eventlog here, but I don't see mine. I'm polling a small slew of computers logs, and everything works fine.. well.. there are a few servers that I don't think I'm hitting, and I'm getting no error on it.
In my "process this server" code, I've got the following little snippet.
unless ( $log = Win32::EventLog->new("System",$computer) ) {
log_data("Unable to open system log for $computer",4);
next;
}
log_data is merely a logging routine I have in there.. but the important thing is that (1) I never log that error message, and (2) I don't skip to the 'next' server if I *should* have failed my new() statement. I know this because I threw a computer named CRACKHEAD into the mix. I'm finding no events in the Crackhead eventlog, but I really expect to find no Crackhead, and to be informed accordingly.
Has anyone come across such a silliness before? I can't get my Win32::Eventlog::new to fail =(
-=rev=-