in reply to tail -F (not -f)

See File::Tail: it already does what you're looking for.

-- Randal L. Schwartz, Perl hacker