5
Just interested : 다음 코드 조각에서 Dumper의 두 번째 형식을 수행하는 방법이 있습니까?Data :: Dumper :: 간단한 사용
use Modern::Perl;
use Data::Dumper::Simple;
my $data = { name => 'jim', age => 21, updated => time() };
my $timestr = localtime($data->{updated});
say Dumper($data->{updated}, $timestr);
# output:
# $data->{updated} = 1338537112;
# $timestr = 'Fri Jun 1 08:51:52 2012';
say Dumper($data->{updated}, scalar localtime($data->{updated}));
# compiliation error:
# say (...) interpreted as function at c:\temp\test4.pl line 9.
# syntax error at c:\temp\test4.pl line 9, near "}]"