in reply to Scope and references
It might also help to read some of the Variables and Scoping tutorials, perhaps especially Coping with Scoping as it has a couple of examples that touch (albeit lightly) upon {}think's for-loop concerns.