From: cg Date: 2004-02-28T20:09:47+09:00 Subject: help with ruby range used as condition Hi all, having read "Programming Ruby: the pragmatic programmer"s Guide" I tried the following "range"-example mentionned in the LOOPS section: file = File.open("ordinal) while file.gets print if /third/ .. /fifth/ end With the following input file "ordinal" : first second third fourth fifth sixth seventh eighth ninth the result was : first second third fourth fifth sixth seventh eighth ninth and NOT : third fourth fifth as mentionned in the book !? I tried it with ruby 1.8.1 (windows) and ruby 1.8.0 (Linux) with the same unexpected result. Am I doing something wrong here ? Is the range-class broke ? Any help is greatly appreciated, thanks Christian