laziness, impatience, and hubris | |
PerlMonks |
Re: viewing log via HTMLby tinman (Curate) |
on Apr 27, 2001 at 02:59 UTC ( [id://75956]=note: print w/replies, xml ) | Need Help?? |
I'm not sure about exactly how you want to format your logfile entries in HTML... That being said, I think you should be looking at File::Tail as a useful way of tailing an access log.. or, the following: its ugly,(and I don't recommend it) but it will work What this code does is read the file, sleep for $delay_period, and then go to the end of the file from the current point.. To format into HTML, well, assuming you just want to make it appear readable, so what you can do is add a <br> to the end of each line.. so, use CGI.pm to complete the picture, using the following snippet..
HTH
In Section
Seekers of Perl Wisdom
|
|