in reply to Scope of Filehandle inside Subroutine?

It's preferable with a modern Perl to use lexical file handles and three-argument open. Once you're doing things that way, you won't need to remember different scoping rules for bareword typeglob file handle.
  • Comment on Re: Scope of Filehandle inside Subroutine?

Replies are listed 'Best First'.
Re^2: Scope of Filehandle inside Subroutine?
by SituationSoap (Acolyte) on Aug 03, 2009 at 12:37 UTC
    Thank you for the response. I'd seen some hints at lexical file handles, but I hadn't seen anything written on the three-argument open. This looks like it will be the easiest way to integrate the logging functionality with the existing code.