where a (global) bareword filehandle and a file-scope lexical have effectively the same scope.
Globs (which you call bareword file handle) and other package variables are global, which means visible everywhere.
File-scoped lexicals are still lexically-scoped. They aren't seen outside the file.
In reply to Re^5: On Backwards Compatibility and Bareword Filehandles
by ikegami
in thread On Backwards Compatibility and Bareword Filehandles
by jcb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |