On Wed, Nov 10, 2010 at 3:58 AM, Tom Christiansen <tchr...@perl.com> wrote:
> It is neither necessary nor sufficient to check the return value
> from print to detect an error in print.

I agree it's not sufficient, but I don't agree it's not necessary.
Just imagine a program waiting for a reply to a question that never
reached the other side of a pipe. IMO not checking print's return
value can cause worse bugs than not checking close because it's much
more likely to affect the flow of the program.

> Certainly it can!!

Enlighten me :-)

Leon

Reply via email to