tobold.org

correct • elegant • free

△ comp.lang.perl △

◅ GDBM, Solaris, and flock/fcntl

Pipe information from one Perl program to another ▻

Q: Input / Ouput buffering and pipes

In article <317B4933.758@direct.demon.co.uk>,
lee  <lee@direct.demon.co.uk> wrote:
>I've set up a simple parent(C) / child(perl) scenario whereby the parent
>sends info to the child, the child processes and send the result to the
>parent.

See the FAQ, question 5.14.  I've found chat2.pl to work well.

>This is all very well EXCEPT that perl uses buffering on the input and I need
>to have unbuffered pipes between them, can anyone help ?????

It's not perl that supplies buffering on pipes, but the Unix kernel.
This cannot be turned off.  (There may also be some stdio buffering.)
In general, you can't have a circular pipeline under Unix.

Tim.
--
Tim Goodwin   | "Python is an object-oriented language that can
UUNET|PIPEX   | process text; Perl is a text-processing language
Cambridge, UK | that can orient objects. :-)" -- Larry Wall

Original headers:

From: tim@pipex.net (Tim Goodwin)
Newsgroups: comp.lang.perl.misc
Subject: Re: Q: Input / Ouput buffering and pipes
Date: 23 Apr 1996 11:07:41 GMT
Organization: Unipalm PIPEX
Message-ID: <4lidlt$sgs@wave.news.pipex.net>
References: <317B4933.758@direct.demon.co.uk>

△ comp.lang.perl △

◅ GDBM, Solaris, and flock/fcntl

Pipe information from one Perl program to another ▻