[HRPM] quick question
Troy E. Webster
twebster at pcs.cnu.edu
Sat Oct 28 12:00:31 CDT 2000
Hey what's the most painless way to launch a seperate perl script from
inside another? I need to pass the seperate script one scalar. PS I'm
not using oop here.
I also need to launch a C program from within. Is it done the same way?
My first thought was to just use system, as in:
@args = ("command","arg1","arg2");
system(@args) == 0
or die "system @args failed: $?"
Am I thinking about this the right way?
Any thoughts are appreciated.
Thanks,
Troy
___________________________________________________________________________
``Beware of bugs in the above code; I have only proved it correct, not
tried it.'' -Don Knuth
---------------------------------------------------------------------------
More information about the Norfolk-pm
mailing list