title: What is the difference between 1) sub name() {....} 2) sub name {....} 3) sub name ($j,$j) {.....}
body: <pre><code>1) sub name() {....}  
  
  2) sub name {....}  
  
  3) sub name ($j,$j) {.....}
  </code></pre>
  
  <p><strong>These three are the different ways to declare subroutines in Perl.
  Want to know the difference between them.</strong></p>