I'm trying to get some perl scripts that work OK under mod_perl 1 working in mod_perl 2. I'm therefore using the mod_perl 1 backward compatiblity, and also the Apache::Registry from mod_perl 1 (as described in the mod_perl 2 documentation to get around the chdir() problem).
One of the scripts sets up a request handler, but when it tries to execute: $r->cgi_env(AB_AUTHHOST=>$host); the following error appears in the httpd log file: Can't locate object method "cgi_env" via package "Apache::RequestRec" at /path/to/perl/lib/site_perl/Apache/MyModule.pm line 55 I have tried to search the perl.apache.org site for "cgi_env", but no matches found. I have also tried to search all of the files in the perl 5.8.0 and mod_perl 2 distribution for occurences of cgi_env, and the ONLY place it occurs is in "mod_perl-1.99_09/todo/deprecated_features.txt" which lists several $r methods (including $r->cgi_env) and says that: these features will either: a) never be in 2.0 b) only be in if #ifdef MP_DEPRECATED c) be in a form that was nothing like 1.xx d) split off into something standalone on cpan So if $r->cgi_env has been REMOVED from mod_perl 2, what is the recommended alternative for it? Thanks, Colin __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com