@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.
In reply to Re: shelling out too much
by Joost
in thread shelling out too much
by iblair
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |