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

Re: CGI::Simple and mod_perl

by Anonymous Monk
on Nov 03, 2011 at 03:35 UTC ( #935573=note: print w/replies, xml ) Need Help??

in reply to CGI::Simple and mod_perl

i assume this issue has something to do with PerlSendHeader


sub header { ... if ( $self->{'.mod_perl'} and not $nph ) { my $r = $self->_mod_perl_request(); $r->send_cgi_header( $header ); return ''; } return $header; }

In short, mod_perl is not CGI

Replies are listed 'Best First'.
Re^2: CGI::Simple and mod_perl
by rhumbliner (Sexton) on Nov 03, 2011 at 23:38 UTC

    well i admit that response went right over my head, but i'm reading up on Apache2::Response to see if i can make any sense of it.

      Why? sub CGI::Simple::header doesn't return a header under mod_perl, because mod_perl is not, so printing the header to STDOUT, is the wrong thing to do
        i'm reading it ...

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2018-03-17 04:44 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (223 votes). Check out past polls.