06 2012 档案

@_与@ARGV
摘要:@_是子过程默认的参数列表,在子过程内使用。shift 默认参数。@ARGV是整个程序的默认参数列表,在子过程外使用。 阅读全文

posted @ 2012-06-20 13:57 perlman 阅读(1580) 评论(0) 推荐(0)

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 阅读(1753) 评论(0) 推荐(0)

导航