http://www.perlmonks.org?node_id=1020026


in reply to Troubles with getting NYTProf to work properly in a CGI program

Try altering the shebang