Lexical variables can be localized - you just can't use the local keyword to do so.
Anonymous monk provides a good demonstration.
In reply to Re^4: Variable being clobbered by a seemingly unrelated while loop
by tobyink
in thread Variable being clobbered by a seemingly unrelated while loop
by texh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |