Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Confusion with two-way pipes

by integral (Hermit)
on Feb 18, 2003 at 09:24 UTC ( #236217=note: print w/replies, xml ) Need Help??


in reply to Confusion with two-way pipes

There is the IPC::Open2 (and the Open3) module in core to make this more painless, but if you're going to write the output of the process to stdout or another file you could use a simple piped open like this:
open PIPE, "|program >$file"; print PIPE "testing. output will go to $file, since perl will pass th +e command line though the shell\n";

--
integral, resident of freenode's #perl

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://236217]
help
Chatterbox?
[Happy-the-monk]: holli: Heizungszü ndungselektrik?

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2017-11-19 14:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (281 votes). Check out past polls.

    Notices?