On Thu, 28 Sep 2006, Peter Bailey wrote: > Well, I know that they're not always odd or even. They've been a mix of > both. But, I understand what you're saying. I will change my original > script. Basically, and, please tell me if I understand this correctly: > if I'm going to do a scan of a file, open the file, scan it, and then > close it. Right? yup. just remember to avoid this string = 'foobar' string.scan(%r/foo/) do |word| string << 'foo' # can't modify while scanning end regards. -a -- in order to be effective truth must penetrate like an arrow - and that is likely to hurt. -- wei wu wei