title: perl - system command arguments give error
body: <p>Tried hard to find a solution for this. But I probably need some help. I am trying to pass a bunch of arguments in system command in perl. But I get an irrelevant error. I have my variables correctly declared with the right scope and still get this error below. Here is my code. </p>
  
  <pre><code>#!/usr/bin/perl
  use warnings;
  use strict;
  
  my $mi = 0;
  my $mj = 0;
  
  my @regbyte;
  my @databyte;
  my $filename;
  my @args;
  @regbyte =       ("00","01","02","03","04","05","06","07","08","09","0A","0B","0C","0D","0E","0F","10","11","12");
  @databyte = ("00","01","02","03","04","05","06","07","08","09", "0A", "0B");
  
  for($mi=0; $mi&lt;13; $mi++)
  {
  for($mj=0; $mj&lt;256; $mj++)
      {
          $filename = "write_" . $regbyte[$mi] . "_" . $databyte[$mj] . ".atp";   
          system("perl perl_2_ver2.5.pl",  $filename, $regbyte[$mi],     $databyte[$mj], "n");
      }
  }
  </code></pre>
  
  <p>This is the error message I get. </p>
  
  <pre><code>Global symbol "$databyte" requires explicit package name at perl_2_ver2.8.pl     line 20.
  Execution of perl_2_ver2.8.pl aborted due to compilation errors.
  </code></pre>