
open(PIPE,"| command |") -- pipe & fork?
Matt> Camel, P. 163: "You may not have an open command that pipes both in and
Matt> out, though it's easy to build one using the pipe and fork commands"
Matt> There's no example of how to do this! Can someone post an example? I
Matt> want something like:
Matt> open(DOIT,"| command1 | command2 | command3 | command4 | command5 |");
I believe the answer from the FAQ is "see open2.pl and open3.pl, in
the library".
Why do you think we have a FAQ? :-)
print "Just another Perl hacker," # but not what the media calls "hacker!" :-)
--
Name: Randal L. Schwartz / Stonehenge Consulting Services (503)777-0095
Keywords: Perl training, UNIX[tm] consulting, video production, skiing, flying
Web: <A HREF="http://www.teleport.com/~merlyn/">My Home Page!</A>
Quote: "I'm telling you, if I could have five lines in my .sig, I would!" -- me