my $repValue = "wrwr";
%$repValue =("name","json") if ref($repValue) ne ref {};
第二句代码没看懂,%$repValue 是把这个变量作为字典变量使用么?后面的ref 和ne ref 又是啥意思?
my $repValue = "wrwr";
%$repValue =("name","json") if ref($repValue) ne ref {};
第二句代码没看懂,%$repValue 是把这个变量作为字典变量使用么?后面的ref 和ne ref 又是啥意思?
是把这个变量作为字典变量,ne是不等于的意思,意思是$repValue的值不等于空。