美文网首页
Hash的引用

Hash的引用

作者: 余绕 | 来源:发表于2020-04-20 16:36 被阅读0次
%hash=('ATGC'=>1,'GATC'=>2,'ATGCG'=>3);

$ref=\%hash;

print "Here is what in the reference\n";

print "$ref\n";

@a=keys %$ref;
@b=values %$ref;

print "@a\n";


print "@b\n";

###########结果###########


Here is what in the reference
HASH(0x2796988)
ATGC ATGCG GATC
1 3 2

相关文章

网友评论

      本文标题:Hash的引用

      本文链接:https://www.haomeiwen.com/subject/bvidihtx.html