Dale Martenson wrote:
> puts (1..4).sum
> 
> This seems to work with Ruby version 1.7.2 (Windows),

But should give warning with -w, IIRC:
   warning: (...) interpreted as grouped expression

> but not with version
> 1.6.7 (Cygwin).

Old parsing of the above code is as: 
  (puts (1..4)).sum

Either way, puts (anything).anything_else is a bad idea in general. 
Put the parenthesis in explicity.

-- 
(\[ Kent Dahl ]/)_    _~_    __[ http://www.stud.ntnu.no/~kentda/ ]___/~
 ))\_student_/((  \__d L b__/  NTNU - graduate engineering - 5. year  )
( \__\_?|?_/__/ ) _)Industrial economics and technological management(
 \____/_?_\____/ (____engineering.discipline_=_Computer::Technology___)