in reply to Re^3: ARGV empty when calling Perl from C program
in thread ARGV empty when calling Perl from C program

I tried that and $0 contains ./script.pl. I don't know where the "1" from temp[0] went.