in reply to shelling out too much
@ARGV = '-h'; do 'myscript.pl';
However, since that will recompile the code each time, you will not gain optimum performance.
Your best strategy would be to put the shared code in a module and use that in both scripts. See perlmodlib.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: shelling out too much
by Fletch (Bishop) on Jun 27, 2005 at 12:33 UTC | |
|
Re^2: shelling out too much
by tlm (Prior) on Jun 27, 2005 at 12:32 UTC | |
by Joost (Canon) on Jun 27, 2005 at 12:42 UTC | |
by Tanktalus (Canon) on Jun 27, 2005 at 19:48 UTC |