摘要: 1.数组相等,数组成员相同,位置也相同一般的如果判断@array1等于 @array2a.数组长度相同 $#array1=$#array2, 比较数组长度,不能使用length函数,length只适用string类型数组参数传递,不能直接传递sub compare(){ my $flag=0; my ($first,$second)=@_; if (@$first==@$second) # the number of the array , don't use length() { for(my $i=0;... 阅读全文
posted @ 2013-06-28 23:16 to be crazy 阅读(7176) 评论(0) 推荐(0) 编辑
摘要: 1.q 相当于 单引号' ' 转义字符无效 q可以使用()[] {} // ,,2.qq 相当于" " 转义字符有效 qq可以使用()[] {} // ,,3.qw 相当于 ('' ,'' ,' ')在每一个单词上添加 ' ' 转义字符无效 qw可以使用()[] {} // ,, qq 和qw 区别,qq赋给数组是整体赋给数组的一个元素,而qw则会每个单词算作一个数组元素4.qr 相当于创建正则 qr//5.qx 执行外部程序 相当于`` 1 #!/usr/bin/perl 2 use stri 阅读全文
posted @ 2013-06-28 22:28 to be crazy 阅读(14545) 评论(0) 推荐(0) 编辑