Update: in your second example your variable is specifically of lexical scope, but there is an underlying global that gets assigned to $fh which doesn't go out of scope.
No, you are wrong. But you seem doggedly unable to learn on this point so I won't bother trying further to get you to.
- tye
In reply to Re^5: Scoping question - will file handle be closed? ("global")
by tye
in thread Scoping question - will file handle be closed?
by Monk::Thomas
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |