[ABE.pm] searching the archives

Faber J. Fedor faber at linuxnj.com
Wed Aug 13 13:04:17 PDT 2008


On 13/08/08 15:44 -0400, Walt Mankowski wrote:
> 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

Right, because to pass global filehandles you had to use typelobs,
right?

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

That's important enough to go into the lecture notes.

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

Thanks.


-- 
 
Regards,
 
Faber Fedor
President
Linux New Jersey, Inc.
908-320-0357
800-706-0701

http://www.linuxnj.com





More information about the ABE-pm mailing list