Boris Zentner wrote:
Hi,

Am Donnerstag, 15. Januar 2004 01:41 schrieb Stas Bekman:

Please take a look at this new manpage
http://perl.apache.org/docs/2.0/api/Apache.html

This issue of ghost Apache namespace troubles me. In mod_perl 1.0 it was OK
to have functions like Apache::current_callback() because almost everything
was preloaded. I don't think it's OK in mp2. It's absolutely not obvious
which module needs to be loaded to get this API, and most people will try
to load Apache, and it won't do the trick.



This is very confusing and incomprehencible to me. My last mp2 application starts with:

use mod_perl 1.99;
use Apache::RequestRec ();
use Apache::RequestIO ();
use Apache::ServerUtil ();
use Apache::RequestUtil ();
use Apache::Util ();
use APR::Date ();
use APR::Table();

and im sure my next project start with this lines too. If someone ask why my answer is I do not know, but it does not work otherwise.

And that's fine. Think of mp2 as a bunch of CPAN modules. You need to load them before you can use them.


I guess people will appreaciate this separation once they will run mp2 in production. mp2 comes with more than 40 modules and more than 400 methods. Compared to 3 modules in mp1 (which you still had to load, remember!) and some 100 methods. If mp2 did what mp1 did you will get too much unnecessary bloat.

perldoc does not know anything of the above.

because of the Apache2 issue. You need to use mp2doc (and it needs to be documented) or patch perldoc to load 'use Apache2'.


__________________________________________________________________
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


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to