On Thu, 4 Oct 2001, Philippe M . Chiasson wrote: > Can you tell me exactly why ? I started doing it the way 1.x used to do it > but it was pretty complicated and I thought about this method instead, that > sounded as good yet a lot simpler. Care to explain why we need to check %INC > for real ?
just because it is possible for a %package:: to exist with the .pm loaded. but i guess we could just check the package for now and change later if needed. pretty sure 1.x goes through the trouble for a reason, but we can wait and seen if there actually is a problem which just checking the stash. > One question remains though, if I am stuck in some bit of code that doesn't > get passed anything interesting as arguments, how can I cleanly get my hands > on the current apr_pool ? there is apr_pool_t *modperl_global_pconf_get() to get the server pool, and modperl_global_request_rec_get() for the current request_rec (only with PerlOptions +GlobalRequest). we should try to avoid using these globals at all costs though. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
