[tpm] Stupid question time!
Alexandru Capsa
alexcapsa at gmail.com
Fri Jan 29 13:00:31 PST 2010
A quick look at operator precedence can help
http://www.perl.com/doc/manual/html/pod/perlop.html
the brackets help you override that precedence so they can change the logic.
Alex
On Fri, Jan 29, 2010 at 3:55 PM, Madison Kelly <linux at alteeve.com> wrote:
> What is the difference between:
>
> if (not $foo && $bar ne "") {}
> if ((not $foo) && ($bar ne "")) {}
>
> I assumed it was mainly an aesthetic/readability thing, but I realize that
> no, it's logically different. Thanks for enlightening me?
>
> Madi
> _______________________________________________
> toronto-pm mailing list
> toronto-pm at pm.org
> http://mail.pm.org/mailman/listinfo/toronto-pm
>
--
Alexandru Capsa
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/toronto-pm/attachments/20100129/13ee9e74/attachment.html>
More information about the toronto-pm
mailing list