Garth Webb wrote:
On Tue, 2004-03-30 at 19:28, Stas Bekman wrote:
Garth Webb wrote:
I have a question about Apache::StatINC and reloading exported methods.
Garth, Apache::StatINC is deprecated and no longer maintained. Please use
Apache::Reload instead (mp1 version on CPAN, mp2 version is a part of the core).
> Apparently methods that are exported from a module do not get reloaded
> when the module changes on disk (see the test script and test module
> below).
That's right. Please read:
http://perl.apache.org/docs/2.0/api/Apache/Reload.html#Problems_With_Reloading_Modules_Which_Do_Not_Declare_Their_Package_Name
So I've played around with Apache::Reload, and I'm a little confused. I
get the same behavior with Apache::Reload that I got under
Apache::StatINC (i.e. use of exported method names leads to those
methods not being reloaded), however Apache::Reload doesn't provide any
way to undef functions which seemed to 'fix' the problem under
Apache::StatINC.
The above link to "Problems With Reloading..." doesn't seem to apply
here since my module does use the correct 'package Module;' line at the
top. Furthermore, checking with Apache::Status, I don't see my test
function imported into the Apache::Reload namespace as it warns with
modules that don't declare their package.
Is there a work around for this? Have I missed something? If it were
up to me, all these function calls would be fully qualified, but this is
a shared code base that has been at my company longer than I have.
Sorry, I've posted the wrong link. It should have been:
http://perl.apache.org/docs/2.0/api/Apache/Reload.html#Problems_with_Scripts_Running_with_Registry_Handlers_that_Cache_the_Code
__________________________________________________________________
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
--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html