http://qs321.pair.com?node_id=875104

anu_1 has asked for the wisdom of the Perl Monks concerning the following question:

I am trying to open a new browser.
#!/usr/bin/perl print "Content-type: text/html\n\n"; print "<INPUT type=\"button\" value=\"New Window\" onClick=\"window.op +en('test.html')\">";

test.html is in the same directory as the perl script. when the button is clicked. I get internal server error with following msg in the log

Fri Dec 3 09:04:19 2010 error (8)Exec format error: exec of /mydir/tools/cgi-bin/test.html failed.

Fri Dec 3 09:04:19 2010 error client 17.70.54.765 Premature end of script headers: /mydir/tools/cgi-bin/test.html

Thanks for your help