in reply to Re: not 'another victim of precedence' ? 'It is true' : 'the code is false'
in thread not 'another victim of precedence' ? 'It is true' : 'the code is false'
It may be helpful to keep in mind that anytime a logical operator has both a symbol form, and a word form, the word form is always designed to be very very low precedence.
Indeed. It occurred to me that I've never been caught by this because I never use the not operator, always using !.
That made me wonder why Perl has not. I make use of the distinction between or and ||, but under what circumstances would not be useful?
Smylers
|
|---|