I'm writing a Perl script that will open a FIFO that a web browser reads from and writes to (specifically, a FIFO in place of the bookmarks file). I want to be able to supply information from the script through the FIFO whenever the browser tries to read the file, but I also want to be able to catch any data the browser writes back to it (i.e. a new bookmark has been added).