perl数据结构输出 Data::Dumper
发布时间:2020-12-15 23:39:52 所属栏目:大数据 来源:网络整理
导读:/prepre name="code" class="sql"oaapp01:/root/test# cat a1.pl use Data::Dumper;%hash=(a=1,b=2,c=3); $refhash=%hash; print %$refhash; print "n"; print "dump 数据结构n";print Dumper(%hash);oaapp01:/root/test# perl a1.pl c3a1b2dump 数据结构
</pre><pre name="code" class="sql">oaapp01:/root/test# cat a1.pl use Data::Dumper; %hash=(a=>1,b=>2,c=>3); $refhash=%hash; print %$refhash; print "n"; print "dump 数据结构n"; print Dumper(%hash); oaapp01:/root/test# perl a1.pl c3a1b2 dump 数据结构 $VAR1 = 'c'; $VAR2 = 3; $VAR3 = 'a'; $VAR4 = 1; $VAR5 = 'b'; $VAR6 = 2; (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |