in reply to best way to pass data

An alternative way would be to declare @array as:
our @array; require ('/tmp/scripts.pl');
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 a
my @array; require ('/tmp/scripts.pl'); someFunction(@array);
this way you can just pass in @array to a function in the other script and that should work as well.