Nova has asked for the wisdom of the Perl Monks concerning the following question:

Hello Perl Monks ,

Firstly , I have a basic question which I have never felt I've understood well . In general , if one wished to run a c program from a perl script , what is the way to do so .

Secondly, if the perl script wants to give input to and receive output from, the c program , by what means is that best facilitated .

As always , thank you for any insights . Nova.

Replies are listed 'Best First'.
Re: Run C prog. from perl script
by ikegami (Patriarch) on Oct 11, 2007 at 20:36 UTC
Re: Run C prog. from perl script
by toolic (Bishop) on Oct 11, 2007 at 20:22 UTC
    Try using the system built-in function. This allows you to run external programs, including C executables.

    Using backticks allows you to collect output, as described in the system documentation.