Reverend Phil has asked for the wisdom of the Perl Monks concerning the following question:
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.unless ( $log = Win32::EventLog->new("System",$computer) ) { log_data("Unable to open system log for $computer",4); next; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: more Win32::EventLog oddities
by BrowserUk (Patriarch) on Sep 26, 2002 at 17:13 UTC | |
by Reverend Phil (Pilgrim) on Sep 26, 2002 at 18:59 UTC | |
by BrowserUk (Patriarch) on Sep 26, 2002 at 19:40 UTC | |
by joefission (Monk) on Sep 27, 2002 at 13:38 UTC | |
by Reverend Phil (Pilgrim) on Sep 27, 2002 at 15:24 UTC | |
|