It does declare a new lexical $var over which do_b closes. However, you call the subroutine before the assignment occurs.
In reply to Re^5: Scope, package, and 'my' variables
by chromatic
in thread Scope, package, and 'my' variables
by ff
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |