title: How to call subroutine in perl using variable name
body: <p>Let say I have one array that contains all subroutine name and I want to call all one by one.</p>
  
  <pre><code>foreach $sub (@arr){
        print "Calling $sub\n";
         #---How to call $sub?----
         &amp;$sub;  ## will not work
  }
  </code></pre>