perl模块Data::Dumper应用一例分享
(编辑:jimmy 日期: 2024/11/3 浏览:3 次 )
复制代码 代码如下:
#!/usr/bin/perl
use strict;
use warnings;
use Data::Dumper;
my %hash = (
'name' => 'zdd',
'id' => 1234,
);
print Dumper(\%hash); # use reference here to get a better output.
#!/usr/bin/perl
use strict;
use warnings;
use Data::Dumper;
my %hash = (
'name' => 'zdd',
'id' => 1234,
);
print Dumper(\%hash); # use reference here to get a better output.
下一篇:perl push的用法及子程序返回值的反思