|
Voltaire posted:I already got the job buddy! I haven't tested this but it should work and looks more like perl. code:
Beardless Woman fucked around with this message at 06:36 on Nov 26, 2008 |
# ¿ Nov 26, 2008 06:31 |
|
|
# ¿ May 15, 2024 23:27 |
|
Having silly issues with map and can't seem to get it to work the way I want. I'm sure there's a way but it's escaping me. I've got this code code:
So I try code:
I can get it to work right using code:
EDIT: Turns out this works. Why it doesn't work without an else statement, I have no idea. code:
Beardless Woman fucked around with this message at 04:02 on Dec 17, 2008 |
# ¿ Dec 17, 2008 03:43 |
|
Sartak posted:working code Thanks Sartak. You're right about returning the empty string. I wound up just using a foreach loop. I shouldn't try to get too clever. EDIT: After playing around with it, turns out you simply have to have an else inside map if you're using if. Beardless Woman fucked around with this message at 12:12 on Dec 17, 2008 |
# ¿ Dec 17, 2008 04:04 |
|
Use Data:: Dumper to dump out the contents of $xml->{localLogDirectory} to see why it's coming up as a Hash.
|
# ¿ Mar 17, 2009 20:37 |
|
I don't have a Windows box, so I don't have any way of testing it out, but it looks like you may be able to achieve what you're looking for through the use of WMI with the DBD::WMI module. The Win32_ProcessStartTrace and Win32_ProcessStopTrace classes/tables are probably going to have what you're looking for. Checking for starting processes should be as easy as a query like code:
code:
|
# ¿ Jul 17, 2016 19:55 |