Instead of doing the fork and pipe you can do:
open(CHILD, "| $command") or die "$command failed: $!\n";
In reply to Re: Send data to STDIN of a exec'ed program
by iburrell
in thread Send data to STDIN of a exec'ed program
by ndwg
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |