Thankyou Dale for pointing me in the right direction. For anybody else looking at precedence, here is a list of the operator precedences - http://phrogz.net/ProgrammingRuby/language.html#table_18.4 -- Posted via http://www.ruby-forum.com/.