title: Why isn't eq working with my string input?
body: <p>Just started to learn Perl and namely, learn program flow - main notable differences between evaluating strings and number and using the appropriate operators. Simple script, I have here is driving me crazy as it's a super simple, if else statement that should on &quot;mike&quot; being entered run and doesn't work. It outputs the else statement instead. Please help</p>
  <pre><code>#!C:\strawberry\perl\bin\perl.exe
  
  use strict;
  #use warnings;
  #use diagnostics;
  
  print(&quot;What is your name please?&quot;);
  $userName = &lt;STDIN&gt;;
  
  
  if($userName eq &quot;mike&quot;){
      print(&quot;correct answer&quot;);
  }
  else{
      print(&quot;Wrong answer&quot;);
  }
  </code></pre>