On Thu, 17 Jul 2003, Shannon Eric Peevey wrote: > > Have you imported them? > > use Apache::Const compile ->qw(Apache::HTTP_FORBIDDEN); > > All the available Apache:: constants are listed here: > > http://perl.apache.org/docs/2.0/api/Apache/Const.html > > I have included the bare minimum of the code from the module, > (Apache::AuthenNTLM). It is still acting as if I have not > imported the modules, but I have changed "require" to "use", > moved the "use" statements into various places of the module > to see if they would catch it, and nothing doing... I am at > the end of my wits. If someone would have a minute to see if > they can see why the Constants within the "sub handler" would > not be found, (though they are imported), that would be a great > thanks and help :) I am running apache 2.0.46 and mod_perl > 1.99_09, perl 5.6.1 on a Debian machine. > > package Apache::AuthenNTLM ; [ .. ] > 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?
-- best regards, randy kobes