Apache-Reload
view release on metacpan or search on metacpan
lib/Apache2/Reload.pm view on Meta::CPAN
- use My::Utils;
+ require My::Utils; My::Utils->import();
now the changed functions will be reimported on every request.
Solution 2: remember to touch the script itself every time you change
the module that it requires.
=head1 Threaded MPM and Multiple Perl Interpreters
If you use C<Apache2::Reload> with a threaded MPM and multiple Perl
interpreters, the modules will be reloaded by each interpreter as they
are used, not every interpreters at once. Similar to mod_perl 1.0
where each child has its own Perl interpreter, the modules are
reloaded as each child is hit with a request.
If a module is loaded at startup, the syntax tree of each subroutine
is shared between interpreters (big win), but each subroutine has its
own padlist (where lexical my variables are stored). Once
C<Apache2::Reload> reloads a module, this sharing goes away and each
Perl interpreter will have its own copy of the syntax tree for the
( run in 0.546 second using v1.01-cache-2.11-cpan-3cd7ad12f66 )