in reply to Re: Scope when initializing with references in a loop
in thread Scope when initializing with references in a loop
the snag I see is that the first couple of times round the loop $array[1] is undefined.
This doesn't seem to matter. I was carefull to post the code in a way that the "d/l code" link would give you the actual code I'm referring to. If you do, and you run it, the array values all get initialized in the outer most scope by first. Still, in the loop, I seem to get a reference to some new value.
Ira,
|
|---|