Renald Buter <buter / CWTS.LeidenUniv.nl> 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