The calling script reads the STDOUT of the exec'd program via the FOO filehandle. You'd need to redirect STDERR to STDOUT if you want them both to go there.open(FOO, '-|') || exec 'cat', '-n', $file;
In reply to Re: Exec'ing and output
by Roy Johnson
in thread Exec'ing and output
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |