Re: Bug#214036: im: imput doesn't work with Perl 5.8.1
Hi, H. S. Teoh wrote:
> The <> operator returns an undefined value if it is either EOF or an
> error occurred; blank lines are returned as 0-length strings (not the
> same as an undefined value).
The <> operator does NOT return 0-length strings for blank lines;
the end-of-line chararcter(s) are retained until you cho(m)p them off.
I do agree that "undef" for both errors and EOF is not a good idea at all,
but unfortunately if you use Perl you're stuck with it.
Perl documentation says that IF you get an 'undef', you can check $! to
find out whether there was in fact an error.
--
Matthias Urlichs | {M:U} IT Design @ m-u-it.de | smurf@smurf.noris.de
Disclaimer: The quote was selected randomly. Really. | http://smurf.noris.de
- -
To love is good, love being difficult.
Reply to: