Shannon Eric Peevey wrote:It did work, in fact. (I was just snoozing on the job... :P )
Fantastic!!! I have been staring at all of the wrong code for way too long... :P
use constant MP2 => ($mod_perl::VERSION >= 1.99);
# test for the version of mod_perl, and use the appropriate libraries
BEGIN {
if (MP2) {
require Apache::Const;
require Apache::Access;
require Apache::Connection;
require Apache::Log;
require Apache::RequestRec;
require Apache::RequestUtil;
apache::Const->import(-compile =>
^^^^^^^^^^^^^ This might be a typo, but if you change that to Apache::Const (upper case 'A'), does that help?
Thanks for taking the time to find my error :)
I should have a working version by the beginning of next week.
I think that this still won't work. The reason:
Apache::Const->import(-compile => 'HTTP_UNAUTHORIZED','HTTP_INTERNAL_SERVER_ERROR','DECLINED','HTTP_FORBIDDEN','OK');
only compiles the constants, it doesn't import them. Drop the '-compile =>' part, and then they will be imported. -compile tell Apache::Const to not import the constants but to compile them.
Thanks, Randy!
speeves cws