On Mon, Jan 30, 2012 at 04:19:19PM +0000, Mark Fowler wrote:
> On Mon, Jan 30, 2012 at 3:40 PM, Sam Kington <s...@illuminated.co.uk> wrote:
> 
> >>> # Checking return values is a good thing. Checking the return value of
> >>> # close or print STDERR is downright silly.
> 
> > In the code that we write at $WORK, any filehandle we close tends to be a 
> > log file or something, so adding extra boilerplate to our close statements 
> > would just be annoying.
> 
> Why are you doing this by hand?  Why aren't you letting autodie handle
> this for you?

What we really need is for autodie to work on the implicit close on a
lexical filehandle going out of scope.

Someone please write that.

And then fix up all the little bits and bobs around the edges.

-- 
Paul Johnson - p...@pjcj.net
http://www.pjcj.net

Reply via email to