perl模塊Data::Dumper應(yīng)用一例分享
更新時間:2013年02月09日 23:42:54 作者:
perl模塊Data::Dumper應(yīng)用一例,參見下面的代碼
復(fù)制代碼 代碼如下:
#!/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.
相關(guān)文章
Perl刪除前導(dǎo)和拖尾空白(刪除左右空格、空白字符)
這篇文章主要介紹了Perl刪除前導(dǎo)和拖尾空白(刪除左右空格、空白字符),本文給出了多個方法實現(xiàn)解決這個需求,需要的朋友可以參考下2015-06-06