On 3/29/07, Brett W. McCoy <[EMAIL PROTECTED]> wrote:
>
> 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");


Nitpick - I don't think any windows boxes have paths which include tabs.

(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)


Windows will recognise / as a path delimeter

-- 
PJH
Aio, quantitas magna frumentorum est


[Non-text portions of this message have been removed]

Reply via email to