Jan 3, 2005 #1 BryanY MIS Aug 18, 2001 54 US I was wondering what the best way is to call a perl program from within another perl program. I basically just want to execute it and test whether it was succesful or returned an error code.
I was wondering what the best way is to call a perl program from within another perl program. I basically just want to execute it and test whether it was succesful or returned an error code.
Jan 3, 2005 #2 PaulTEG Technical User Sep 26, 2002 4,469 IE Code: @results=`perl script2.pl`; foreach(@results) { print $_; } This is better than a system() call for your purposes because you wish to check the output HTH --Paul cigless ... Upvote 0 Downvote
Code: @results=`perl script2.pl`; foreach(@results) { print $_; } This is better than a system() call for your purposes because you wish to check the output HTH --Paul cigless ...