develooper Front page | perl.perl5.porters | Postings from July 2011

Re: [PATCH] [DOCS] Modernize perlopentut.pod

Thread Previous | Thread Next
From:
Marvin Humphrey
Date:
July 17, 2011 05:37
Subject:
Re: [PATCH] [DOCS] Modernize perlopentut.pod
Message ID:
20110717122449.GA6966@rectangular.com
On Sun, Jul 17, 2011 at 12:38:43PM +0200, Christian Walde wrote:
> On Sun, 17 Jul 2011 11:39:48 +0200, Matt S Trout <mst@shadowcat.co.uk> wrote:
>
>> I've never, ever actually seen the 'or die' on one of my close() statements
>> fire, so I don't have much ammunition for arguing it.
>
> I've seen it. 

I see it on a regular basis.

If a print() call fails, e.g. because the disk has filled up, close() will
ultimately fail as well.

If you aren't going to check the return value of every print(), you need to
check the return value of close().

Marvin Humphrey


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About