title: If statements inside or outside loops?
body: <p>Is it better if I do this:</p>
  
  <pre><code>foreach my $item ( @array ) {
     if ( $bool ) {
       .. code ..
     }
     else {
       .. code ..
     }
  }
  </code></pre>
  
  <p>or</p>
  
  <pre><code>if ( $bool ) {
     foreach my $item ( @array ) {
     }
  }
  else {
     foreach my $item ( @array ) {
     }
  }
  </code></pre>