title: Load perl modules automatically during runtime in Perl
body: <p>Is there a way to load entire modules during runtime in Perl? I had thought I found a good solution with <code>autouse</code> but the following bit of code fails compilation:</p>
  
  <blockquote>
    <blockquote>
      <p>package tryAutouse2;<br>
      use autouse 'tryAutouse';<br>
      my $obj = tryAutouse->new();</p>
    </blockquote>
  </blockquote>
  
  <p>I imagine this is because <code>autouse</code> is specifically meant to be used with exported functions, am I correct? Since this fails compilation, is it impossible to have a packaged solution? Am I forced to <code>require</code> before each new module invocation if I want dynamic loading?  </p>
  
  <p>The reasoning behind this is that my team loads many modules, but we're afraid this is eating up memory. </p>