Don't ask to ask, just ask | |
PerlMonks |
Re: Parsing a log fileby ilcylic (Scribe) |
on Nov 27, 2007 at 18:58 UTC ( [id://653338]=note: print w/replies, xml ) | Need Help?? |
You could do:
Or do you need the rest of the line split up, too? Edit: Reading more carefully, I see you do need the rest of it. Still, the above should help you extract the msg= component, and you still have the rest of the pieces. Don't forget that you lose the record separator you use to split on, if that 'msg=' or 'Src' are actually important to your report.
In Section
Seekers of Perl Wisdom
|
|