Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re^3: 'use' falls out of scope at runtimeby shmem (Chancellor) |
on Apr 23, 2009 at 19:32 UTC ( [id://759633]=note: print w/replies, xml ) | Need Help?? |
use called a second time doesn't reload the module, since it checks %INC (see perlvar) and, if the module is already in that hash, the underlying require just returns 1, so no loading. You would have to undef $INC{$module} for the use to reload the module. Keep in mind that in %INC the key for Some::Module is Some/Module.pm. Aa Corion said, you could use Apache::Reload for those packages; if you have changing packages where methods/functions are organized into files, you could use AutoReloader.
In Section
Seekers of Perl Wisdom
|
|