06 2012 档案

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

posted @ 2012-06-20 13:57 perlman 阅读(1574) 评论(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 阅读(1741) 评论(0) 推荐(0) 编辑

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示