On 11-09-15 01:07 AM, Jeff Pang wrote:
15 сентября 2011, 08:38 от Rajeev Prasad<rp.ne...@yahoo.com>:
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 use or require this
module in main script and call the methods in the module.
--
Jeff Pang
jeffp...@mail.ru
A better way, IMHO, if you can't move it to a module, is to use `open`.
open my $fh, '-|', 'thecalledscript.pl' or die "could not pipe from
thecalledscript.pl: $!\n";
--
Just my 0.00000002 million dollars worth,
Shawn
Confusion is the first step of understanding.
Programming is as much about organization and communication
as it is about coding.
The secret to great software: Fail early & often.
Eliminate software piracy: use only FLOSS.
"Make something worthwhile." -- Dear Hunter
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/