in reply to ARGV empty when calling Perl from C program
use warnings; print ">>>$ARGV[0]<<<\n"; open (FILE,">test.txt") or die $!; print FILE $ARGV[0]; [download]
Tips from the Basic debugging checklist