From: Dave Thomas Date: 2001-08-09T21:39:21+09:00 Subject: [ruby-talk:19421] Re: Setting $_ for the current scope Renald Buter writes: > Looking back at my question, I see it is a bit fuzzy. What I am > really looking for is a case-like structure _with_ fall-through, but > _without_ having to write down the variable name for each regexp > test. Possibly the Ruby case statement might help :) case bla when /help/ then help when /exit/ then exit else puts "Sorry" end And not a $_ in sight. Dave