From: Malte Milatz Date: 2005-03-20T02:05:49+09:00 Subject: Re: Case with strings Aquila: > case key.strip > when "c" "Synopsis" # You need the keyword 'then' here. when 'c' then 'Synopsis' # or alternatively: when 'c'; 'Synopsis' # And you're likely to write something like this: answer = case key.strip when 'c' then 'Synopsis' # etc. end # now work with answer # Consider, too, using a hash. It does what you want in a very direct and # clean way. # Malte