Apache-Reload

 view release on metacpan or  search on metacpan

RELEASE  view on Meta::CPAN

Instructions for Apache-Reload Release Manager

0. Ask the PMC to verify that you have the appropriate CPAN permissions
   on dev@perl.

   If this is your first release, ask someone with APML karma on PAUSE
   to verify you have the appropriate permissions.  Likely someone on
   the PMC can do this.

  a. login into https://pause.perl.org
  b. menu click: Select Mailinglist/Action
  c. choose APML and Change Permissions and click go
  d. click 3.1 Make somebody else co-maintainer
  e. choose the modules to give the perms to
     type the username of the new co-maintainer
  f. if you happen to know that packages were added this release,
     make sure you give the correct permissions to them.

lib/Apache2/Reload.pm  view on Meta::CPAN


  the color is white

=head3 The Explanation

Even though F<My/Utils.pm> was reloaded, C<ModPerl::Registry>'s cached
code won't run 'C<use My::Utils;>' again (since it happens only once,
i.e. during the compile time). Therefore the script doesn't know that
the subroutine reference has been changed.

This is easy to verify. Let's change the script to be:

  #file:test.pl
  #------------
  use My::Utils;
  print "Content-type: text/plain\n\n";
  my $sub_int = \&colour;
  my $sub_ext = \&My::Utils::colour;
  print "int $sub_int\n";
  print "ext $sub_ext\n";



( run in 1.197 second using v1.01-cache-2.11-cpan-5467b0d2c73 )