in reply to
Exec'ing and output
perldoc -f open
and go down a long way to where it talks about doing things like
open(FOO, '-|') || exec 'cat', '-n', $file;
[download]
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.
Caution:
Contents may have been coded under pressure.
Comment on
Re: Exec'ing and output
Select
or
Download
Code
In Section
Seekers of Perl Wisdom