Using backticks allows you to collect output, as described in the system documentation.
In reply to Re: Run C prog. from perl script by toolic in thread Run C prog. from perl script by Nova