in reply to Scope of Filehandle inside Subroutine?
The variable FILE (which is short for main::FILE in your example) is a package variable and is therefore in scope thoughout the example you provided. As long as it is opened before it is used then it should work as expected.
|
|---|