Add a (scope-limiting) block and local to that and @ARGV won't be damaged in script 1:
# in script 1 { local @ARGV=(...); do('script2'); }
But this is just an awful kludge.
tel2, move (most of) the code of script 2 into a module. use that module in script 2 to get the existing behaviour. use that module also in script 1 to get the functions you need.
Alexander
In reply to Re^2: do script2.pl with parms
by afoken
in thread do script2.pl with parms
by tel2
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |