System will fork a second shell process from the parent and wait for a response when the child process exits (which sounds like what you want). This is not so efficient as exec which kills the parent process.
For system: my $return = system (my_script, my_argument); Will start a child process and wait until it completes returning an exit value. Regards Rick Dr Richard Edwards, Web Developer Sift, 100 Victoria Street, Bristol, BS1 6HZ, UK Tel: +44 117 9159600 Fax: +44 117 9159630 http://www.sift.co.uk -----Original Message----- From: Geer, David van der [mailto:[EMAIL PROTECTED] Sent: 21 October 2003 08:03 To: Ramprasad A Padmanabhan; [EMAIL PROTECTED] Subject: RE: call one perl script within another > How Can I call a perl script within my main script > If I do > $response=`perl $somescript $args`; This will fork and open a shell so is slow > do "$somescript $args"; > But How do I get the reponse of the script. > Is there a way or should I just use the backticks Please look at system() and exec() this should help you out. Regs David > Thanks > Ram -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]