foreach (@a) { |<==From HERE to HERE==>| }
and that you
just bounced aroud INSIDE OF the brackets. But I guess every time you evaluated the control statement, you leave the brackets and you lose scope and re-enter it.
I did read Coping with Scoping, and that deals with this exact situation.
In reply to Re^4: Scope and references
by {}think
in thread Scope and references
by {}think
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |