From: Ben Giddings Date: 2004-06-30T07:16:17+09:00 Subject: Re: [ANN] arrayfields-3.0.0 Ara.T.Howard wrote: > if tuple[17] =~ pat or tuple[9].to_i < 42 > ... > end ... > if tuple['name'] =~ pat or tuple['age'].to_i < 42 > ... > end Is there any reason you didn't just use either constants or variables like: if tuple[NAME] =~ pat or tuple[AGE].to_i < 42 ... end or if your indices weren't constant, set them from a DB query and then do: if tuple[name] =~ pat or tuple[age].to_i < 42 ... end arrayfields looks great, and makes things much easier, but it just seems odd to me that you'd approach it the way you did. Ben