in reply to CGI::Simple and mod_perl

i assume this issue has something to do with PerlSendHeader

Nope.

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 http://tools.ietf.org/html/rfc3875(CGI), so printing the header to STDOUT, is the wrong thing to do
        i'm reading it ...