On 28 Mar 2007 16:00:26 -0700, sanofsans <[EMAIL PROTECTED]> wrote:
> I would like to be able to start a perl program from a C program.
> 2 questions:
>
> 1) How do you tell my C program to go to a particular directory and
> find the perl script?
>
> 2) How do I get my C program to execute that perl script?
Easiest way:
system("/path/to/script");
or
system("perl /path/to/script");
or
system("perl C:\path\to\script");
(the first two work under Unix-ish systems, the last one is for
Windows, although I think nowadays I think Windows knows how to
execute a Perl script directly like Unix does)
-- Brett
------------------------------------------------------------
"In the rhythm of music a secret is hidden;
If I were to divulge it, it would overturn the world."
-- Jelaleddin Rumi