Since it's being handled as a command, did you look in @ARGV of foo.pl?
This is reinforced by the module doc that says:
The third optional argument is a reference to an array which if passed becomes ARGV to the spawned program.
--Bob Niederman, http://bob-n.com | [reply] |
I don't think perl automagically will allow two (or more) processes to read and write to the same memory. The solution? Look into the IPC::Shareable module. It provides routines to tie variables to Shared memory, and lock and unlock access to avoid race conditions.
If I get some time I'll post sample code. | [reply] |