I think it mimics (or is?) the system's errno. See:

http://linux.die.net/man/3/errno

> Its value is significant only when the return value of the call indicated
an error (i.e., -1 from most system calls; -1 or NULL from most library
functions); a function that succeeds is allowed to change errno.
>
> Valid error numbers are all nonzero; errno is never set to zero by any
system call or library function.

2011/11/5 Ken Peng <kenp...@freenet.de>

> 于 2011-11-5 11:16, Anneli Cuss 写道:
>
>  $! is not guaranteed to be cleared if there was no error. This means you
>> probably don't have a "Bad file descriptor" error, it's just the last
>> value
>> of $! (or 'errno').
>>
>
> That's confused.
> Since there is not such an error, I was thinking $! or $@ shouldn't
> include an error value.
>
> Thanks anyway.
>
> Ken.
>
>
> --
> To unsubscribe, e-mail: beginners-unsubscr...@perl.org
> For additional commands, e-mail: beginners-h...@perl.org
> http://learn.perl.org/
>
>
>

Reply via email to