title: Use of uninitialized value $intReason in array element PERL
body: <p>So I've been working on a report system using arrays but whenever I try to send a report it gives me this </p>
  
  <p><code>Use of uninitialized value $intReason in array element at Server/Systems/Messaging.pm line 26.</code></p>
  
  <p>I don't think it's really an error more like a warning cause everything works fine but it gives me that though.</p>
  
  <p>here is the code</p>
  
  <pre><code>method handleSendReport($strData, $objClient){
      my @arrData = split('%', $strData);
      my $intPID = $arrData[5];
      my $intReason = $arrData[6];
      my $arrNickname = $arrData[7];
      my @reasons = ("Swearing", "Sexual Language", "Racial Words", "Personal Info", "Email Address", "Real Name", "Name Calling", "Bad Penguin Name");
      $objClient-&gt;botSay($reasons[$intReason]); #Line 26
  }
  </code></pre>