Im getting the following errors
[Sun Mar 12 21:19:27 2006] [error] [client 127.0.0.1] File does not ex +ist: /Library/WebServer/Documents/favicon.ico [Sun Mar 12 21:19:27 2006] [error] (8)Exec format error: exec of /Libr +ary/WebServer/CGI-Executables/first.pl failed [Sun Mar 12 21:19:27 2006] [error] [client 127.0.0.1] Premature end of + script headers: /Library/WebServer/CGI-Executables/first.pl

what do they mean
My shebang line is correct

[lupercal:/library/webserver/cgi-executables] richill% whereis perl /usr/bin/perl

My code is saved as a unix file

#!/usr/bin/perl print "Content-type: text/html\r\n\r\n"; print "Hello, World.";

I can send httpd.config file if it will help

20060313 Janitored by Corion: Added formatting


In reply to How can i run perl on osx by richill

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.