A "global" cannot become "lexically inaccessible". That's what "global" means.
I think your basic misconception comes from the good old days of Perl 4 and Perl 5.005, where Perl did not have lexical filehandles. The global variables holding the data on filehandles were more or less identical to a string. But this has changed with Perl 5.6.1, which was released in 2003 I think.
In reply to Re^7: Scoping question - will file handle be closed? ("global")
by Corion
in thread Scoping question - will file handle be closed?
by Monk::Thomas
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |