On 2008-10-30 13:24:10 +0200, Niko Tyni wrote:
> I don't think this is a bug. As documented in perlvar.pod,
> the value $! is meaningful only immediately after a failure.

The problem with the readline function is that one cannot know
if there's a failure without looking at $! first! Note that the
example tests whether the returned value is defined, but undef
in case of end of file isn't a failure. But what if the result
is not undef (in either scalar or list context) while there's a
failure?

So, either the behavior or the documentation has to be changed.

-- 
Vincent Lefèvre <[EMAIL PROTECTED]> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to