From: Ben Bleything Date: 2007-07-27T00:46:19+09:00 Subject: Re: help if else On Fri, Jul 27, 2007, Bertram Scharpf wrote: > It's not only legibility, it's enough to calculate c[i+14] > once as the result is every time the same. Right! I forgot to mention that :) > Another suggestion: > > case chaine[ i+14] > when %r{twincards>(true|false) %q{twincards xsi:nil="1"/} then > ... > end My gut tells me this might be slower, but probably not enough to matter. And I always forget about %q, that's really the best way to quote something that has quotes inside it. Ben