标签:register gis code hash 使用 over class tis override
my %register = ( "name" => "Wander", "name" => "Tison" );
print $register{ name }; # OUTPUT: Tison
所以为了合并散列(新散列覆盖旧散列,如果有交叉)可以使用下面两种写法
%old = ( %old, %new );
# or
@old{ keys %new } = values %new;
标签:register gis code hash 使用 over class tis override
原文地址:https://www.cnblogs.com/wander4096/p/9498172.html