in reply to system call not working

system returns an exit value. You should try looking at it to see what is wrong.
system("program -a arg1 -b arg2"); $exit_val = $? >> 8; # or divide by 256 if you like
A return value of 0 indicates success.

Have you tried leaving off the -f filename argument as another way to see if the program has successfully been executed by system?