in reply to Passing Array to seperate file
work for you? It will execute secondfile (your second Perl script) in the current Perl environment, so your array is there (and so are any other variables, subroutines, etc. that you've defined in the calling program).do secondfile;
Update: your array would need to be not lexically scoped (with my), though. Declaring it as our would be a good choice.
|
|---|