Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

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 making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2017-04-23 09:16 GMT
Find Nodes?
    Voting Booth?
    I'm a fool:

    Results (430 votes). Check out past polls.