Welcome to the Monastery | |
PerlMonks |
Re: Call for code samples!by lestrrat (Deacon) |
on Nov 15, 2001 at 14:41 UTC ( [id://125544]=note: print w/replies, xml ) | Need Help?? |
I only remember this vaguely, but a while back I had a co worker ask me to write a simple parser to parse a proxy-cache log entry, sort of similar to Apache logs... where entries could be:
He encountered problems because he was trying to separate out the fields using split. Obviously, since an entry can contain spaces if it's quoted, you couldn't really split() So the approach I took was something like this:
something like that. come to think of it, it's probably not a good example... oh well. my $0.02
In Section
Meditations
|
|