steph_bow has asked for the wisdom of the Perl Monks concerning the following question:
Dear Monks,
I would like to know of there is an alternative to subs
My main script General.pl uses a lot of different little scripts like prog1.pl , prog2.pl, ... prog15.pl which are at least more than one hundred lines each. And in General.pl I call:
my $cmd1 = "perl prog1.pl $arg_a $arg_b"; system ($cmd1); my $cmd2 = "perl prog2.pl $arg_a $arg_c"; system ($cmd2); ... my $cmd15 = "perl prog15.pl $arg_b $arg_d"; system ($cmd15);
I would like to know if I should change all the little programs into subs in General.pl or if I should keep it as it is now. Thanks a lot
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: alternative way to subs
by Corion (Patriarch) on Apr 30, 2008 at 07:39 UTC | |
by ysth (Canon) on Apr 30, 2008 at 07:43 UTC | |
|
Re: alternative way to subs
by rovf (Priest) on Apr 30, 2008 at 08:10 UTC | |
|
Re: alternative way to subs
by kyle (Abbot) on Apr 30, 2008 at 15:20 UTC | |
|
Re: alternative way to subs
by shmem (Chancellor) on Apr 30, 2008 at 12:53 UTC | |
by Zen (Deacon) on Apr 30, 2008 at 14:56 UTC | |
by Fletch (Bishop) on Apr 30, 2008 at 15:28 UTC | |
by Zen (Deacon) on Apr 30, 2008 at 15:54 UTC | |
by shmem (Chancellor) on Apr 30, 2008 at 16:57 UTC | |
|
Re: alternative way to subs
by Codon (Friar) on Apr 30, 2008 at 16:55 UTC | |
|
Re: alternative way to subs
by leocharre (Priest) on Apr 30, 2008 at 13:42 UTC |