now scripts.pl will be able to use @array (as long as it is declared as our in there as well) and you will be using strict so your code should be easy to follow. Or you can leave @array as aour @array; require ('/tmp/scripts.pl');
this way you can just pass in @array to a function in the other script and that should work as well.my @array; require ('/tmp/scripts.pl'); someFunction(@array);
In reply to Re: best way to pass data
by bear0053
in thread best way to pass data
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |