空hash的创建

版权声明:本文为博主原创文章,转载请加入原文链接,谢谢。。 https://blog.csdn.net/shawncheer/article/details/83688382

之前用的是:

my %hash=undef;

后来发现程序中存在一个空值,元素个数为1.经过分析发现可能是这个undef的问题,所以我改成了:

my %hash=();

定义后的元素个数为0;it works!

猜你喜欢

转载自blog.csdn.net/shawncheer/article/details/83688382