title: Perl CGI onclick call perl subroutine
body: <p>I want to call a perl subroutine in Perl CGI. I know I need the onClick event but not sure how to use it correctly to call "TestSbub". Can anyone help?</p>
  
  <pre><code>&lt;input type="button" value="submit" onClick="process('')"&gt;
  
  
  sub TestSub {
      ###Do some code###
  }
  </code></pre>