Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^2: Using File::Tail on a unicode file

by chrestomanci (Priest)
on Mar 07, 2012 at 15:00 UTC ( #958301=note: print w/replies, xml ) Need Help??


in reply to Re: Using File::Tail on a unicode file
in thread Using File::Tail on a unicode file

Thank you, that was exactly what I was looking for. ++

Unfortunately I can't use it because I have just discovered that File::Tail does not work under windows, or at least not under Active State perl 5.12. It is not available in their package repository, and when I tried to install it by hand most of the tests failed.

Instead I have switched to a simpler algorithm that just monitors the file mtime, and if it changes, reads the entire file. It is inelegant but works.

  • Comment on Re^2: Using File::Tail on a unicode file