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 scri
On 11-09-15 01:07 AM, Jeff Pang wrote:
15 сентября 2011, 08:38 от Rajeev Prasad:
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?
Not the good way.
It's better to write the called
15 сентября 2011, 08:38 от Rajeev Prasad :
> 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?
>
Not the good way.
It's better to write the called script as a module, then u
On Thu, Sep 15, 2011 at 12:07 AM, Rajeev Prasad wrote:
> here is how i am calling it from a thecalling_script:
*snip*
> require "thecalledscript.pl";
*snip*
> issue is, the called script prints some filenames after completion to STDOUT.
> how can i collect them into an array variable?
You co
: 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 "thecalledscri
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