in reply to Re: Re: passing argv by reference
in thread passing argv by reference

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