title: How can I pass value to Perl Subroutine parameters on command line?
body: <p>my <strong><em>test.pl</em></strong> script as below.</p>
  
  <pre><code>#!C:\Perl\bin\perl.exe
  use strict;
  use warnings;
  
  
  sub printargs
  {
      print "@_\n";
  }
  
  &amp;printargs("hello", "world"); # Example prints "hello world"
  </code></pre>
  
  <p>If I replaced <code>printargs("hello", "world");</code> with <code>print($a, $b);</code>.     </p>
  
  <p>How to pass 'hello' ,'world' to $a , $b when I run <strong><em>perl test.pl hello world</em></strong> at command line, Thanks.</p>