Perrin Harkins wrote:
[...]
Moreover I've read that Apache->request should be avoided in mod_perl2:
http://perl.apache.org/docs/2.0/user/porting/compat.html#C_Apache_E_gt_request_


That only applies to threaded MPMs, and modules you release that others
might want to run under threaded MPMs.

But since we expect most modules to run under any MPM, it usually applies to any code.


I doubt one ever needs to use Apache->request. CGI.pm now accepts $r as an argument to CGI->new() and if you need to access $r from elsewhere in your code a Singleton should be used.

__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


-- Reporting bugs: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html



Reply via email to