Chinaunix

标题: 为什么@AGRV为空 [打印本页]

作者: 飞越地平线    时间: 2013-07-24 11:00
标题: 为什么@AGRV为空
  1. if (@AGRV<3) {
  2.         print "11\n";
  3.         print scalar @AGRV;
  4. }
复制代码
如上程序;在windows命令行下输入perl "C:\Users\zhusy\Desktop\new  3.pl" "1" "2" "3" "4" "5"
结果打印内容为
11
0

请教下,为什么@AGRV为空?
作者: zhlong8    时间: 2013-07-24 11:06
AGRV => ARGV 不用 use strict; 就别学 Perl 了,都是坑
作者: 飞越地平线    时间: 2013-07-24 11:11
回复 2# zhlong8

哦~~受教!

   
作者: rubyish    时间: 2013-07-26 02:11
zhlong8 发表于 2013-07-24 07:06
AGRV => ARGV 不用 use strict; 就别学 Perl 了,都是坑

惊喜~ {:3_188:}
3Q ~ {:3_188:}
作者: tideyzhang    时间: 2013-07-26 13:40
回复 2# zhlong8
头像是110号元胞自动机吧???


   




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2