Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

Re: I can't find error section of code

by rowdog (Curate)
on Jun 20, 2010 at 16:41 UTC ( #845644=note: print w/replies, xml ) Need Help??

in reply to I can't find error section of code

This is where you go wrong...

my $r = Apache2::Request->new(shift);

You're throwing away the Apache2::RequestRec to build an Apache2::Request which is used for parsing parameters rather than setting content type and such. You want to keep both objects. Maybe try something like...

sub handler { my $r = shift; my $req = Apache2::Request->new($r); my $name = $req->param('name') || 'John Doe'; $r->content_type('text/html'); $r->print(<<EOHTML); <html>...</html> EOHTML return OK; }

If you haven't seen it yet, the mod_perl web site is an excellent source of documentation and tutorials.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://845644]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (8)
As of 2017-07-21 17:46 GMT
Find Nodes?
    Voting Booth?
    I came, I saw, I ...

    Results (331 votes). Check out past polls.