This tail -f's the apache log file, and replaces each space with a tab (useless, but it shows how you can do it).
And of course there's File::Tail on CPAN:
In reply to Re: using perl to format tail -f
by moritz
in thread using perl to format tail -f
by danmcb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |