Deborah Pickett wrote:
Which looks better? if ($a == 1|2|3 || $b eq "x"|"y"|"z") or if ($a == 1||2||3 | $b eq "x"||"y"||"z" ?
No question thatthe former works better. Lower precedence operators govern larger chunks, and so should themselves be larger (i.e. more easily detected).
I just need some kind soul to pat me on the head and tell me it's OK.
<pat> <pat> ;-)
(Please excuse the Monash staff member, it's been a difficult week.)
For ex-Monash staff members too. :-( Damian