全部博文(362)
发布时间:2013-05-23 11:55:44
数组个数my $arr_num = scalar @arr1;标量长度my $word = "hello world";my $strlen = length $word;......【阅读全文】
发布时间:2013-05-23 10:39:44
#下面有4个例子,但通常最后一个更常用。my %owner1 = ( "name" => "Santa Claus", "DOB" => "1882-12-25",);my $owner1Ref = %owner1;my %owner2 = ( &.........【阅读全文】
发布时间:2013-05-04 14:08:17
#!/bin/bashconndate=`date +%Y-%m-%d_%H%M`connum=$(netstat -anp | grep 192.168.1.2 | wc -l)if [[ $connum -gt 0 ]]thennetstat -anp | grep 192.168.1.2 >> /opt/conn/conn_${conndate}.txt.........【阅读全文】