Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

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

Comment on Re: CGI::Simple and mod_perl
Download Code
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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2015-12-01 22:57 GMT
Find Nodes?
    Voting Booth?

    My keyboard shows this many letters:

    Results (29 votes), past polls