I am now using: my @outfiles = `thecalledscript.pl $filename`;
i am getting right results. now question is: is this the best method in terms of efficiency? ________________________________ From: Rajeev Prasad <rp.ne...@yahoo.com> To: Perl Beginners <beginners@perl.org> Sent: Wednesday, September 14, 2011 11:07 PM Subject: running perl script from inside another script & collecting output in array i am doing like below: thecalledscript.pl needs a filename as argument. here is how i am calling it from a thecalling_script: { local @ARGV; @ARGV = ("$filename"); require "thecalledscript.pl"; } issue is, the called script prints some filenames after completion to STDOUT. how can i collect them into an array variable?