title: Differences in if condition
body: <p>I found this while exploring some working code. 
  Also in perl coding I am still a newbie. Here is my question:
  <strong>What the differences between this IF condition</strong>?</p>
  
  <pre><code>if ($command =~ /send|regd|succ|fail|recv/)
  </code></pre>
  
  <p>and this one</p>
  
  <pre><code>if ( ($command == "send") || ($command == "regd") || ($command == "succ")
       || ($command == "fail") || ($command == "recv"))
  </code></pre>