What is the difference between: open (MPRINT, "$mconn|") or die $!; and: open (MPRINT, "|$mconn") or die $!;
The first executes the program in $mconn and you can read its output through the filehandle MPRINT.
The second allows you to write some input through the filehandle MPRINT which the program in $mconn can access on its STDIN.
-- Hofmator
In reply to Re3: problem spawning mconnect
by Hofmator
in thread Code for Perlmonks XML to RSS
by xdg
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |