Why isn't $picture set after the loop terminates?Because at loop exit, $picture is restored to whatever value it had before loop entry (in this case undef); or more precisely: within the loop, $picture is aliased to each value in turn; outsise the loop it is not aliased and so the name $picture once again refers to the original value.
Dave.
In reply to Re: Last undefines a for loop's itererator?
by dave_the_m
in thread Last undefines a for loop's itererator?
by BUU
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |