in reply to Re^6: Scoping question - will file handle be closed? ("global")
in thread Scoping question - will file handle be closed?
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^8: Scoping question - will file handle be closed? (5.6.1)
by tye (Sage) on Jul 29, 2015 at 14:27 UTC |