in reply to Re: Watching a named pipe
in thread Watching a named pipe

More simply:
open FH, $fifo or die $!; while (select($ready = fileno(FH), undef, undef, undef)) { # do stuff... }