Hi folks,

I'm having a devil of a time with something that should be very easy. I'm
using 
mod_perl and CGI::Application for some pokey stuff, and my scripts run
just 
dandy in a CGI environment, but outputs absolutely nothing in my mod_perl 
setup.

I'm using:
MacOSX 10.3
Perl 5.8.1 (the standard delivered version)
Mod_perl 1.26 (the standard delivered version)
Apache 1.3.28 (the standard delivered version)

perl -MApache -e 'print $Apache::VERSION' = 1.27
perl -Mmod_perl -e 'print $mod_perl::VERSION' = 1.26
perl -MCGI -e 'print $CGI::VERSION' = 3.00

Here's my Apache::Registry Configuration out of the httd.conf

> PerlModule Apache::Registry 
> <Location /registry>     
>   SetHandler      perl-script
>   PerlHandler     Apache::Registry
>   Options         +ExecCGI
> </Location> 

Now this is where it gets weird. Following script works dandy:
> my $r = Apache->request;
> $r->content_type("text/html");
> $r->send_http_header;
> $r->print("Hi There!");

But this script only generates output in a CGI environment:

> use strict ;
> use CGI ;
> my($q) = new CGI ;
> print   $q->header,
> $q->start_html('hello world'),
> $q->h1('hello world'),
> $q->end_html;


????

--
Carl K. Cunningham
Roberts� interactive GmbH
E-Mail: initials of first and last name, at 'roberts' dot 'de'
-------------------------------------------------------------------
---------



  • Mod_perl Woes Carl K. Cunningham
    • PerlDiscuss - Perl Newsgroups and mailing lists

Reply via email to