There are several ways. Using shared memory seems to obvious
choice. Alternatively, you can translate the array to a
string, pass the string from on program to another (pipe,
file, fifo, socket), make an array of that again, do your
calculations, stringify it again, pass it back over some
channel, and turn it into an array again. You could use
Data::Dumper for the string/array translations.
I'd redesign the setup and make sure I wouldn't need to
pass arrays from one program to the other. But I'm funny that way.
Abigail