[snip]

Also, I hate to whine, but despite the docs saying so, whatever value my script returns is completely ignored; I have to use $R->status (). I'm using Apache::Registry, in case that makes any difference.
Apache::Registry ignores the actual return code from your script, using instead the $r->status hack that Kyle illustrated before. so, an A::R script such as:

use Apache::Constants qw(SERVER_ERROR);
shift->send_http_header('text/plain');
print "ok";
return SERVER_ERROR;

will print 'ok' :)

if some online documentation says otherwise, please let us know exactly where and we'll make sure it's accurate.

remember that Apache::Registry is meant to be a mod_cgi emulation layer - once you start using the mod_perl API you might as well just write a real PerlHandler.

HTH

--Geoff



Reply via email to