ok a couple things,
first: it you are putting the cgi script in the /file directory? I don't think that directory is set up to run cgi scripts.
put them in /home/primary/cgi-bin/yourscript.cgi
second: the path to perl is /usr/bin/perl
and finally make sure you have the correct permissions set on the script.
often times perl scripts require 755 to run
chmod 755 yourscript.cgi
hope that helps.