title: '=' is working in place of 'eq'
body: <p>Hi I am writing a perl script to accomplish some task.In my script I am using one if loop to compare two strings as shown below.</p>
  
  <pre><code>if($feed_type eq "SE"){
  ...........}
  </code></pre>
  
  <p>The above code is not giving me any warning but the output is not as I expected.
  Instead of <code>'eq'</code> if I use <code>'='</code> I am getting a warning saying <code>expectng '==' but '=' is present</code>. But I am getting the expected output.
  Ideally for string comparison I must use <code>'eq'</code> and for numbers <code>'=='</code>. In this case it's not working. Can anyone figure out what is the problem here?</p>
  
  <p>More info:</p>
  
  <p>This <code>if</code> loop is present in a subroutine. <code>$feed_type</code> is an input for this subroutine. I am reading the input as below:</p>
  
  <pre><code>my $feed_type=@_;
  </code></pre>
  
  <p>The problem is fixed. I just changed the assignemet statement of feed_type as below</p>
  
  <pre><code>my $feed_type=$_[0];
  </code></pre>
  
  <p>and it's reading the value as <code>SE</code> and the code is working.
  but I still dont know why <code>my $feed_type=$_[0];</code> didn't work.</p>