in reply to system call not working

One potential problem is that if $ARGV[0] contains whitespace, your system() call will be hosed. May not be your problem this time, but it could be in the future.