加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 大数据 > 正文

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

发布时间:2020-12-15 21:53:26 所属栏目:大数据 来源:网络整理
导读:$@和$之间有什么区别!在Perl?与eval相关的错误使用$@输出. $!也用于捕获错误.那么他们俩之间有什么区别? 解决方法 从 perldoc perlvar开始: The variables $@ , $! , $^E ,and $? contain information about different types of error conditions that
$@和$之间有什么区别!在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.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读