title: Why are my shared variables getting cleared out between PerlChildInitHandler and PerlResponseHandler in mod_perl?
body: <p>I am trying to load a configuration file into a hash during my <code>PerlChildInitHandler</code> and then access the values from <code>PerlResponseHandler</code>. However, even though the process number is the same, it seems that variables changed during the <code>child_init()</code> call revert back to their default values when <code>handler()</code> gets called.</p>
  
  <p>The basic scenario is:</p>
  
  <pre><code>package StartupLog;
  
  # the variable I'm testing
  my $sticky = 0;
  
  sub child_init {
      $sticky = 1;
      return 0;
  }
  
  sub handler {
      warn __PACKAGE__ . " sticky = $sticky\n";    ### always says "0" but should say "1"
      return 0;
  }
  1;
  </code></pre>