Sam Wilkins wrote:
#!/usr/bin/perl -w
use strict;
print "Content-type: text/html\r\n\r\n";
print "It worked!!!\n";

No matter what I run, even that, I get document contains no data. It works from the command line. If it helps, I'm on Mac OS X 10.3.5, Apache 1.3.29, and I don't know how to determine my mod_perl version.

<Location /perl>
    SetHandler perl-script
    PerlHandler Apache::Registry
    Options ExecCGI
    PerlSendHeader Off
    allow from all
</Location>

If you don't send full HTTP headers yourself, you need to set "PerlSendHeader On" to make Apache parse and complete the headers.


--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html



Reply via email to