If you need the output from both stdout and stderr via a single stream:
#main my $kid = open my $fh, "theExternalProcess 2>&1 |" or die $!; while( <$fh> ) { ## Read the output from theExternalProcess } ## You'll end up here when the kid goes away
If you need to keep stdout and stderr separate, then see IPC::Open3 or IPC::Run.
In reply to Re^3: How to share streams between processes
by BrowserUk
in thread How to share streams between processes
by rapide
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |