Help for this page

Select Code to Download


  1. or download this
    $cmd  = 'script.pl';
    $var1 = 'foo';
    ...
    
    # this executes $cmd with $var[12] as arguments
    system("perl $cmd $var1 $var2");
    
  2. or download this
    ($var1, $var2) = @ARGV;
    
  3. or download this
    $var1 = shift @ARGV;
    $var2 = shift @ARGV;