I'm "trying" to use Win32::Pipe (see http://www.roth.net/perl/pipe/ ). It works very nicely, but there are a few problems:
I'm trying to use the 'peek' method to find out if anything is in the pipe. This works quite nicely, but always returns nothing if the "other side" closed the pipe. I'd like to know when the "other side" closes the pipe (after it was opened), so I can finish up my musings on my end. The normal 'Read' method works well for this, BUT it blocks. What to do? It seems that the 'Peek' method needs 3 returns: 1) Nothing there, 2) Something there (go ahead and read it), and 3) Other side closed the thing, (aka End File). I can get 1 & 2, but not 3. Bummer!! Is there any hope?? Thanks.