Multiple session log extraction from a single file problemby dmtelf (Beadle)
|on Aug 06, 2000 at 16:16 UTC||Need Help??|
dmtelf has asked for the wisdom of the Perl Monks concerning the following question:
The sample servlog.txt file below (in the code tags) shows 2 complete session logs followed 1 incomplete session log.
Session start/end dividers are *****
A complete session log represents data between two ***** lines inclusive.
An incomplete session log represents data from one ***** line onwards to the end of file.
I need to pull each session log (inc. *****'s) into an array - @session1,@session2 etc.
I also need another array which has something along the lines of:
How can I do this, O wise log parsing Monks?