Re: 'use strict' and filehandles
- From: "Paul Lalli" <mritty@xxxxxxxxx>
- Date: 31 Aug 2006 12:42:59 -0700
Timothy Johnson wrote:
If you want to pass a filehandle like that I would recommend using the
FileHandle module.
Why? What's the advantage of that over just using lexical filehandles?
As your script stands, however, you have no reason to pass the
filehandle to the subroutine.
Yes he does.
You can just do a "print ERRLOG $scalar" to print.
Except that he doesn't want the function to only print to ERRLOG, he
wants to choose which filehandle to print to based on what filehandle
is being passed to the function.
Paul Lalli
.
- References:
- 'use strict' and filehandles
- From: Ted Fines
- RE: 'use strict' and filehandles
- From: Timothy Johnson
- 'use strict' and filehandles
- Prev by Date: Re: 'use strict' and filehandles
- Previous by thread: RE: 'use strict' and filehandles
- Next by thread: Re: 'use strict' and filehandles
- Index(es):
Relevant Pages
|
|