You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@perl.apache.org by Stas Bekman <st...@stason.org> on 2001/12/07 19:30:45 UTC

issues with Apache::Reload and warnings pragma

I do use Apache::Reload while developing tests and modules for 2.0, I 
have a problem with reloading modules when:

   use warnings FATAL => 'all';

is in effect. When the module gets reloaded, it dies on 'redefine' 
warning. Apache::Reload does turn off the fatality of the warnings, 
before requiring the module:

    no warnings FATAL => 'all';
    require $key;

but the module itself sets it on. Any ideas how to solve this problem 
other than trying to flush the subs namespace ala PerlRun? Or is this 
the only way to go?

_____________________________________________________________________
Stas Bekman             JAm_pH      --   Just Another mod_perl Hacker
http://stason.org/      mod_perl Guide   http://perl.apache.org/guide
mailto:stas@stason.org  http://ticketmaster.com http://apacheweek.com
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org