tail -f in perl
I have been trying to pipe a tail -f feed to a perl program to do some simple filtering on the output using regexes.
I have found that the output of 'tail -f' doesn't show up on STDIN when piped to a different command. Is there a way to do this without actually calling tail -f from within the perl application?
As I write this I found myself wondering if redirecting it to a named pipe could work. I will have to experiment with that.