thcsoft has asked for the wisdom of the Perl Monks concerning the following question:
and in another module, called Lib.pm (because it contains a bunch of common functions for all 'CGI' pages), the tune goes:use Apache2::Const -compile => qw(:common :http);
which works absolutely fine. but now, in a 'CGI' script, being executed under ModPerl::Registry, the following linessub decline { # print some stuff Apache2::Const::OK; }
produce the above error message. to me that looks like a problem of ModPerl::Registry, but even if it were, i probably hadn't the skills to correct it.$r->headers_out->add('Location' => "/main"); $r->content_type('text/html'); return Apache2::Const::REDIRECT;
|
|---|