Keep It Simple, Stupid | |
PerlMonks |
Re: Parse Log File As Writtenby atemon (Chaplain) |
on Sep 24, 2007 at 05:15 UTC ( [id://640665]=note: print w/replies, xml ) | Need Help?? |
One possible solution can be using Tie::File. "Tie::File represents a regular text file as a Perl array. Each element in the array corresponds to a record in the file. The first line of the file is element 0 of the array; the second line is element 1, and so on. The file is not loaded into memory, so this will work even for gigantic files. Changes to the array are reflected in the file immediately." You may write a program which runs every few ms or reside in the memory. One sample program can be Hope this helps.
Notes :
Updates :
Cheers ! --VC There are three sides to any argument..... your side, my side and the right side.
In Section
Seekers of Perl Wisdom
|
|