in reply to Re^2: A question regarding Win32::EventLog
in thread A question regarding Win32::EventLog
hth !!foreach my $key (keys %$hashRef){ if ($key =~ /EventID/) { my $id = ($hashRef->{$key} & 0xffff); print $key . "\t" . "\"$id\"" . "\n"; }
elsif ($key =~ /User/){ my $sid = unpack("H" . 2 * length(${$hashRef}{$key}), ${$hashRef}{ +$key}); my $user = ($hashRef->{$key} & 0xffff); print "User SID: " . "\t" . "\"$sid\" " . "\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: A question regarding Win32::EventLog
by sidhartha (Acolyte) on Feb 02, 2005 at 12:49 UTC |