On Sun, Jul 13, 2008 at 1:21 AM, John M. Dlugosz
<[EMAIL PROTECTED]> wrote:
> OK, when I defined $r as you did, it worked. For documentation, I was
> looking at here:
> <http://search.cpan.org/~joesuf/libapreq2-2.08/glue/perl/lib/Apache2/Request.pm>
Hi John,
That SYNOPSIS is more like a set of possible calls to
Apache2::Request, not a literal series of lines. You do need to get
$r (an Apache2::RequestRec object) first.
> I see you are just printing to standard output, like a CGI script.
When using ModPerl::Registry, you can just print to STDOUT.
> In the book, it used
>
> $r->send_http_header('text/plain');
> $r->print("mod_perl rules!\n");
>
> but there are no such methods on $r here in 2.0.
>
> What, prey tell, is the equivalent object?
That's Apache2::RequestRec.
> Is there =any= way to get started, like a simple (but working!) program I
> could look at?
There are two places you should look for MP2 docs. The first is the
mod_perl site, which has all the API docs and many examples. If you
want a book, the only one you should use for MP2 at this point is
"mod_perl2 User's Guide": http://modperl2book.org/
- Perrin