laziness, impatience, and hubris | |
PerlMonks |
Regex confusionby peschkaj (Pilgrim) |
on Oct 30, 2002 at 17:04 UTC ( [id://209146]=perlquestion: print w/replies, xml ) | Need Help?? |
peschkaj has asked for the wisdom of the Perl Monks concerning the following question: Regular expressions confuse me. Deeply. I am grabbing a process name with Proc::ProcessTable, but I also need to grab out certain fields to display. I know that my current regular expression is horribly flawed, but I will provide what I am working with. I am eventually going to use this code with SOAP so that I do not need to be on the UNIX box to view running processes. However, the process information often looks like this: OPSms -N op01Sms1 -t SMS -T 0x70000000 -U op01/op011 -I sms1I need to grab the OPSms, op01Sms1, and 0x70000000 fields. My "code":
I'm getting a "Use of unitialized value in printf at ./procs2.pl line 29" which is the printf. If you make something idiot-proof, eventually someone will make a better idiot. I am that better idiot.
Back to
Seekers of Perl Wisdom
|
|