title: function not avaliable after restarting Apache
body: <p>I am fairly new with perl and apache and seem to be having a small problem with my code.</p>
  
  <p>I have 3 files: </p>
  
  <p><strong>hw.pm</strong></p>
  
  <pre><code>package hw;
  
  sub calc {
      my $num1 = shift;
      my $num2 = shift;
      return $num1 + $num2;
  }
  1;
  </code></pre>
  
  <p><strong>startup.pl</strong></p>
  
  <pre><code>use lib qw(path to where hw.pm is located);
  1;
  </code></pre>
  
  <p><strong>hel.pl</strong></p>
  
  <pre><code>#!/usr/bin/perl -w
  use hw;
  use CGI qw(:standard);
  print header;
  
  my $ans = calc(5,4);
  print $ans;
  </code></pre>
  
  <p>I have no problem restarting apache but when I access hel.pl from the browser I get an error <code>Can't locate hw.pm in @INC</code></p>
  
  <p>Should the startup.pl have already included it in <code>@INC</code>? Or am I missing something?</p>
  
  <p>I am using perl v5.10.1 and Apache2 v2.2.16 </p>