This logic is probably wrong:
I think you want to test equality, and the 0 may be wrong. It might help sort this out if you eliminated the shell by calling the list form of system and checking errors, system( '/path/to/perl', '/path/to/script2.pl', @theArray) and die $?, $!;if ($#ARGV != 0) { die " no argument was passed\n"; }
After Compline,
Zaxo
In reply to Re: Passing arguments
by Zaxo
in thread Passing arguments
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |