After the closing braces, there is nothing left in scope. In spite of that the filehandle FH remains open
... which means that FH is indeed still in scope and that the reference count is therefore non-zero.
In reply to Re^3: Scoping question - will file handle be closed?
by hippo
in thread Scoping question - will file handle be closed?
by Monk::Thomas
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |