The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 02-06-2007
new2ss new2ss is offline
Registered User
  
 

Join Date: Jan 2006
Posts: 133
Calling a perl script from a perl script

Code:
printf(”Going to call another script... \n”);
system(”/my_dir/B.pl”); # call another perl script B.pl
exit;
Hi everyone, above is an example that i am using to call another perl script from the current perl script.

I have two concerns :
1) This there a better way of achieving the same purpose ( ie call another perl script from a perl script)?

2) Notice there is an exit command in my calling script. Will the exit command be executed only after B.pl is completed OR it will be executed immediately B.pl is called?