From: anne001 Date: 2006-07-09T23:25:18+09:00 Subject: why does block know about one instance variable and not the other? I can't find what the problem is with @foundinfo: since it is defined outside a block, the block should find it no? @item is defined outside the second block and that second block finds it. What is @item and @foundinfo different? Do I have a typo I don't see, or it there a principle of the thing? Here is my simplified code with debugging puts class Linear @foundinfo=Hash.new p " 1. debugging @foundinfo created" p @foundinfo.class #this is ok def run data="hello dud" data.split(/