If your perl is earlier than 5.6.x add -w to the end of the shebang line.
In reply to Re^3: Perl CGI and SQL statements by wfsp in thread Perl CGI and SQL statements by kjg