in reply to Re: tf - tail a file and output separator line when inactive
in thread tf - tail a file and output separator line when inactive

Nice addition.

I would only change one thing:

while (defined ($_ = $tail->read)) { if (/$regex/) { print; alarm 2; } }

That will prevent separator lines after reading a line that was filtered.