[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Pan-users] My Wish List

From: Toby Inkster
Subject: Re: [Pan-users] My Wish List
Date: Sat, 20 Jul 2002 03:01:13 +0100

On Fri, 19 Jul 2002 20:21:04 -0500
Jeff Vian <address@hidden> wrote:

| Not necessarily in C, although the C version could be set to block and 
| when the pipe was emptied would refill it as earlier mentioned in this 
| thread.

The Perl version already does this. This is handled *automagically* by the 
named pipe. The Perl program blocks on opening the pipe for writing until some 
other program opens it for reading.

| The perl example works well but is one time or would need to be written 
| to loop as well. ?? 

It already includes "while (1 == 1)"

| Is there a mechanism in perl to tell if the pipe has
| been emptied so it would automatically loop similarly to the blocking io
| of C.??

As stated above, that's all handled by the named pipe.

Toby A Inkster. I can't think of anything clever to write here.
E-mail:   address@hidden
Web Page:
IM:       AIM:inka80 ICQ:6622880 YIM:tobyink Jabber:address@hidden

Zero Defects, n.:
        The result of shutting down a production line.

Attachment: signature.txt
Description: For security, this message has been digitally signed.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]