On Wed, 14 Sep 2011 21:07:31 -0700, Rajeev Prasad wrote: > 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?
You would be better off calling it with backticks. Otherwise you have to try fragile techniques such as tying filehandles. -- Peter Scott http://www.perlmedic.com/ http://www.perldebugged.com/ http://www.informit.com/store/product.aspx?isbn=0137001274 http://www.oreillyschool.com/certificates/perl-programming.php -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/