Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Active Munging via a pipe (code)

by broquaint (Abbot)
on Jan 16, 2002 at 23:45 UTC ( #139306=note: print w/replies, xml ) Need Help??


in reply to Active Munging via a pipe (code)

The problem with looping on the input from named pipes is that after the first read you're left with an EOF for the second read1, so the loop exits. Subsequently you can't loop on a named pipe without working some serious voodoo (over-riding CORE::GLOBAL::eof()?). So this provides with many excuses to do dubious things such as using goto(), labels and (dum dum dum) infinite loops. Personally I'd go with an infinite loop opening the FIFO on each iteration, or take have a good long think about it. Good luck!
HTH

broquaint

1unless you have something writing faster than perl can read

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://139306]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (3)
As of 2023-05-30 23:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?