于 2011-11-5 16:57, Uri Guttman 写道:
it isn't confusing. when a system call error occurs, you get an undef
return value which says that. then you check $! to see what was the
error. clearing $! on all good calls is a waste of cpu since most calls
succeed vs the number that fail. the same is true for $@ when an eval
fails. you check the return value of the eval and if needed, then check
the value of $@ for what the error was.

Then where did it get the error and set up the value of $! in my first post?

Thanks again.

--
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