<br><br><div class="gmail_quote">On Fri, Jan 29, 2010 at 3:55 PM, Madison Kelly <span dir="ltr"><<a href="mailto:linux@alteeve.com">linux@alteeve.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
What is the difference between:<br>
<br>
if (not $foo && $bar ne "") {}<br>
if ((not $foo) && ($bar ne "")) {}<br>
<br>
I assumed it was mainly an aesthetic/readability thing, but I realize that no, it's logically different. Thanks for enlightening me?<br></blockquote><div><br>Read the perlop document on operator precedence. I see that:<br>
<br>ne binds first<br>&& binds second<br>and not has the lowest precedence<br><br>I think you expected it to be 'just as high' as the 'ne'<br><br><br> <br></div></div><br>