2012年6月15日

eval的两个作用

摘要: 1 捕获错误# Catch exception with eval# This is an exception of divided by zero# if errors happened, perl stores it in $@# you should check $@ immediately after eval {} block# Note, eval is a function, not a flow control clause# you need to add ';' after the blockuse strict;use warnings;eval { re 阅读全文

posted @ 2012-06-15 09:52 perlman 阅读(1740) 评论(0) 推荐(0) 编辑

导航