> I am not sure what you mean but here is how to perform the task:

I have something like the following.  I tried to make it a little 
simpler.

a = "This is a big old string."

a.each do |w|

**I have a bunch of if else statements in this block**

end


So w = "This" first time around
   w = "is" second time around
   w = "a" third time around ...

What I was trying to ask is when w = "big" inside this block is there a 
way I could peek ahead within the block and see "old" as the next 
substring without assigning "old" to w?

Does that make more sense?

Thanks a lot for taking a look,

Chris
-- 
Posted via http://www.ruby-forum.com/.