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.
In reply to Re: Scope of Filehandle inside Subroutine?
by jwkrahn
in thread Scope of Filehandle inside Subroutine?
by SituationSoap
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |