[comp.lang.perl] pipe

piet@cs.ruu.nl (Piet van Oostrum) (02/22/90)

In article <7123@jpl-devvax.JPL.NASA.GOV>, lwall@jpl-devvax (Larry Wall) writes:
 `It could be handled by syscall, presuming you have syscall.  I would consider
 `adding it in if I decided that I could easily enhance the portability of
 `Perl scripts by doing so--that is, if there are several ways to do it
 `on different OS's and perl can present a single interface on all those
 `machines.  This is the primary reason I added mkdir and rmdir--some machines
 `have the system call and some have to call /bin/mkdir and /bin/rmdir.

This sounds like a good reason to supply a pipe command. You can't do this
with syscall, on some machines you can get away with socketpair, but if you
don't have that, you are lost. Suggested syntax:
pipe (HANDLE1, HANDLE2).
-- 
Piet* van Oostrum, Dept of Computer Science, Utrecht University,
Padualaan 14, P.O. Box 80.089, 3508 TB Utrecht, The Netherlands.
Telephone: +31-30-531806   Uucp:   uunet!mcsun!hp4nl!ruuinf!piet
Telefax:   +31-30-513791   Internet:  piet@cs.ruu.nl   (*`Pete')

lwall@jpl-devvax.JPL.NASA.GOV (Larry Wall) (02/23/90)

In article <2507@ruuinf.cs.ruu.nl> piet@cs.ruu.nl (Piet van Oostrum) writes:
: This sounds like a good reason to supply a pipe command. You can't do this
: with syscall, on some machines you can get away with socketpair, but if you
: don't have that, you are lost. Suggested syntax:
: pipe (HANDLE1, HANDLE2).

Er, it's already in patch 9, oddly enough.

Larry