[ABE.pm] searching the archives

Walt Mankowski waltman at pobox.com
Wed Aug 13 12:44:16 PDT 2008


On Wed, Aug 13, 2008 at 03:33:12PM -0400, Faber J. Fedor wrote:
> > More importantly, though, the old style creates a global filehandle.  Globals
> > are evil.
> 
> Oh. I thought it was a more nuanced than that.  Thanks.

More advantages:

* lexical filehandles are easier to pass to subroutines

* when a lexical filehandle goes out of scope, the corresponding file
  is automatically closed

There's some more discussion of this issue at
http://www.perlfoundation.org/perl5/index.cgi?bareword_uppercase_filehandles

Walt


More information about the ABE-pm mailing list