$@和$之间的区别!在perl

前端之家收集整理的这篇文章主要介绍了$@和$之间的区别!在perl前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
$@和$之间有什么区别!在Perl?与eval相关的错误使用$@输出. $!也用于捕获错误.那么他们俩之间有什么区别?

解决方法

perldoc perlvar开始:

The variables $@,$!,$^E,and $? contain information about different types of error conditions that may appear during execution of a Perl program. The variables are shown ordered by the “distance” between the subsystem which reported the error and the Perl process. They correspond to errors detected by the Perl interpreter,C library,operating system,or an external program,respectively.

原文链接:https://www.f2er.com/Perl/172047.html

猜你在找的Perl相关文章