Amblikai has asked for the wisdom of the Perl Monks concerning the following question:
Hi folks, i spent the last day or so writing a quick logfile parser. It literally just searches the file for categories of search terms. I was happy with my new creation!
Until....
I've just realised that when the logfile is created, newlines are being randomly inserted into the file. I've no idea why. It seems just to be the way these logs are created!
The problem being that occasionally, my search terms are cut in half by a newline! How on earth am i supposed to deal with that?
Any advice would be greatly appreciated. Thank you!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Help parsing badly constructed logfiles
by AppleFritter (Vicar) on Jul 13, 2014 at 16:16 UTC | |
by Amblikai (Scribe) on Jul 13, 2014 at 17:14 UTC | |
|
Re: Help parsing badly constructed logfiles
by Bethany (Scribe) on Jul 13, 2014 at 17:22 UTC |