in reply to Re: mod_perl and CGI behavior
in thread mod_perl and CGI behavior
Unfortunately it seems deeper than that.
Looking at the code over on github here, you can see that the ->new method checks if mod_perl is being used and, if it is, gives you back an object with the request attached to it, and all that stuff...
But, regardless, I dumbed down the script to just...
#!/perl/bin/perl use strict; use warnings; use Data::Dumper::Names; use CGI; use Apache2::Connection (); use Apache2::RequestRec (); $| = 1; my $header = CGI::header(); print STDERR Dumper($header);
...and it still outputs just...
$header = '';
--
Andy
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: mod_perl and CGI behavior
by davebaker (Pilgrim) on Sep 30, 2020 at 20:32 UTC | |
by naChoZ (Curate) on Oct 07, 2020 at 22:00 UTC | |
by davebaker (Pilgrim) on Oct 08, 2020 at 16:54 UTC | |
by naChoZ (Curate) on Nov 02, 2020 at 14:54 UTC | |
by naChoZ (Curate) on Oct 07, 2020 at 15:18 UTC |
In Section
Seekers of Perl Wisdom