Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

really ... I know I can send syslog io to a mkfifo pipe but how should I write a daemon, in Perl, to process this output? Thank you

Replies are listed 'Best First'.
Re: how to smoke from a fifo pipe
by halfcountplus (Hermit) on Oct 02, 2010 at 13:24 UTC

    You open and read from the fifo just like any other file. If you are writing to a fifo, you probably want to use autoflush:

    use IO::Handle; open (FIFO, ">>fifo") || die; FIFO->autoflush(1);

    This presumes a named pipe "fifo" already exists in the same directory.