in reply to not 'another victim of precedence' ? 'It is true' : 'the code is false'
An excellent lesson indeed. I still get tripped up with precedence issues all the time, despite my years of experience, which is why I tend to split complex operations into several statements if I can. (Though I do have a bad habit of writing crazily nested map/sort/grep blocks. But that's just 'cause it's so damn fun. :) )