in reply to declare my variable in loop
The @Array_Vals goes out of scope as (each iteration of) the loop ends. If you use strict (and you always should - especially while learning) then that code won't even compile.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: declare my variable in loop
by gauss76 (Scribe) on Aug 08, 2017 at 08:33 UTC | |
by Corion (Patriarch) on Aug 08, 2017 at 08:35 UTC | |
by gauss76 (Scribe) on Aug 08, 2017 at 08:47 UTC | |
by Corion (Patriarch) on Aug 08, 2017 at 09:50 UTC | |
by AnomalousMonk (Archbishop) on Aug 08, 2017 at 10:01 UTC | |
by AnomalousMonk (Archbishop) on Aug 08, 2017 at 10:14 UTC |