title: Use of uninitialized value in concatenation (.) or string at
body: <p>I've this error: </p>
  
  <blockquote>
    <p><code>Use of uninitialized value in concatenation (.) or string at...</code></p>
  </blockquote>
  
  <h3>This is my code:</h3>
  
  <pre><code>$queryH= $dbh-&gt;prepare($query);
  $queryH-&gt;execute();
  my $i=0;
  my $result;
  while (@data = $queryH-&gt;fetchrow_array()) 
  {
      $result=$data[$i];
      if ($result)
      {
          print "$result \n";
      }
      else
      {
          print "Records Not Found!\n";
          last;
      }
      print "\n";
      $i++;
  }
  print "\n\n";
  $queryH-&gt;finish();
  $dbh-&gt;disconnect();
  </code></pre>
  
  <p>What error is there in my code? </p>
  
  <p>The error is on the line:</p>
  
  <pre><code>$result=$data[$i];
  </code></pre>