Re: Bug#214036: im: imput doesn't work with Perl 5.8.1
Hi, Steve Kemp wrote:
> The following change makes the code work as expected:
Your change works as expected, but only because the file has just one line.
It's not a general solution.
The general solution is not to use $! as an error indicator in perl. That
doesn't work reliably. Likewise, you can't use 'errno' as an error
indicator in C. _Always_ check the return value.
... or switch to Python. ;-)
--
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
- -
You're not drunk if you can lie on the floor without holding on.
-- Dean Martin
Reply to: