Hi there,
I am trying to call a shell script from a
Perl script. here is the code:
@args = ("sh", "someshellprg.sh", "a file handler", "an array");
system(@args) == 0
or die "system @args failed: $?";
in the shell program, I examine if the arguments exits using:
if [ $# -ne 2 ]
then echo "missing input"
exit 1
fi
the script returns "missing input", any ideas? Thanks in advance.