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   |  [EMAIL PROTECTED]
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 via email to