title: Perl: If always returning true
body: <p>I am just getting back into Perl programming so I appologize if this is an easy/stupid question.</p>
  
  <p>My If statement is returning true (never going to the else) and I'm not really sure why. For example this code never prints "getshere":</p>
  
  <pre><code>@showName = ("Matt","Matt","Matt","Gym","Gym");
  
  $counter=0;
  foreach (@showName)
  {
      if ($showName[$counter]==$showName[$counter+1])
      {
          print "$showName[$counter] equ $showName[$counter+1]\n";
      }
      else
      {
          print "getshere";
      }
      $counter++;
  }
  </code></pre>
  
  <p>Can you please tell me what I am doing wrong?</p>
  
  <p>Thank you!</p>