ModPerl::Registry or ...?

2008-07-12 Thread John M. Dlugosz
Reading the docs, I'm a little confused. Is ModPerl::Registry specifically for emulating the CGI environment, or should I do something else if I plan to write to the API from scratch and don't need the backward compatibility?

Re: Problem getting started

2008-07-12 Thread Raymond Wan
Hi John, John M. Dlugosz wrote: OK, when I defined $r as you did, it worked. For documentation, I was looking at here: I see you are just printing to standard output, like a CGI script. In the book, it use

Re: Problem getting started

2008-07-12 Thread John M. Dlugosz
This is your problem. Apparently if you call Apache2::Request->new with an undefined object, it segfaults. i ran this: use Apache2::Request; my $req = Apache2::Request->new($r); print qq[Content-type: text/html\n\n]; print q[hi]; through registry, and saw [Sat Jul 12 22:58:58 2008] [notice]

Re: Problem getting started

2008-07-12 Thread adam . prime
Please include the list on replies, so the archives are complete. Quoting "John M. Dlugosz" <[EMAIL PROTECTED]>: Adam Prime adam.prime-at-utoronto.ca |mod_perl mailing list| wrote: For the Apache2::Request problem you're running: use Apache2::Request; $req = Apache2::Request->new($r);

Re: Problem getting started

2008-07-12 Thread Raymond Wan
Hi John, Unfortunately, I'm still muddy with modperl to help you even though I'm on Debian Etch. I have it working and can tell you what I have installed...but I can't help you with modperl specifics as I'll probably end up teaching the wrong thing. To answer Adam's question: Adam Prime

Re: Problem getting started

2008-07-12 Thread Adam Prime
John M. Dlugosz wrote: I'm trying to use mod_perl on Debian Etch. I was looking at "practical mod_perl" book, but it appears that much has changed in mod_perl 2.0 so the second example doesn't work at all. The first example, which is just two print statements to give a minimal header and con