>>>>> "a" == aidy <aidy.rutter@gmail.com> writes:
a> case line
a> when /^Provinces:$/ || /^Town:$/
When you write this, ruby first execute ||, something like
moulon% ruby -e 'p /^Provinces:$/ || /^Town:$/'
/^Provinces:$/
moulon%
fatally the result is /^Provinces:$/, then it will make the test
a> task = :provinces
a> when /^Provinces:$/ && /^Town:$/
Same here, it first evaluate &&
moulon% ruby -e 'p /^Provinces:$/ && /^Town:$/'
/^Town:$/
moulon%
the result is /^Town:$/, then it make the test
Guy Decoux