Except possibly for the path to Perl, that's fine if run as a CGI script.
In reply to Re^11: Weird error log message by ikegami in thread Weird error log message by Nik