title: Can I access a static method in a dynamically specified class in Perl?
body: <p>Is it possible to dynamically specify a class in Perl and access a static method in that class? This does not work, but illustrates what I'd like to do:</p>
  
  <pre><code>    use Test::Class1;  
      my $class = 'Test::Class1';  
      $class::static_method();    
  </code></pre>
  
  <p>I know I can do this:  </p>
  
  <pre><code>    $class-&gt;static_method();  
  </code></pre>
  
  <p>and ignore the class name passed to static_method, but I wonder if there's a better way. </p>