摘要:
最近一直在纠结perl里如何释放内存的问题。下面有几个简单的语句: 1、 perl -e 'for $i(1..10000){$hash{$i} = 0;print "$i\t$hash{$i}\n";delete $hash{$i};}for $j(10001..20000){$hash{$j}=1;print "$j\t$hash{$j}\n"}' 2、 perl -e 'for $i(1..10000){$hash{$i} = 0;print "$i\t$hash{$i}\n";undef $hash{$ 阅读全文
posted @ 2012-04-11 15:12
香格里拉\(^o^)/
阅读(2476)
评论(0)
推荐(0)
浙公网安备 33010602011771号