Randal L. Schwartz wrote:
It seems to me that normal OO programming practice dictates
that when you return an object of type $x, that all the methods
that you might want to call against $x are also loaded.

We discussed this at length on the dev list, and it's all in the archives. Various options for autoloading and shuffling the documentation were discussed. There are tradeoffs between ease of use and memory.

So far, the people who most wanted to change it (mostly me, I think) have not produced actual code to do it, so it hasn't happened. You are certainly welcome to take a crack at it if it's itching you more. In the meantime, there's a pretty simple way to deal with it. Just put this in startup.pl:
ModPerl::MethodLookup::preload_all_modules();

You can also use that module to find which man page you need. There are examples in the POD:
http://perl.apache.org/docs/2.0/api/ModPerl/MethodLookup.html

- Perrin

Reply via email to