Perl 使用 XML::Simple 进行 XML 读写

2015-12-14 0 526
Perl 使用 XML::Simple 进行 XML 读写
use XML::Simple;

my $simple = XML::Simple->new();             # initialize the object
my $tree = $simple->XMLin( './data.xml' );   # read, store document

print "The user prefers the font " . $tree->{ font }->{ name } . 
    " at " . $tree->{ font }->{ size } . " points.\n";

遇见资源网 perl Perl 使用 XML::Simple 进行 XML 读写 http://www.ox520.com/13229.html

上一篇:

已经没有上一篇了!

下一篇:

已经没有下一篇了!

常见问题

相关文章

发表评论
暂无评论
官方客服团队

为您解决烦忧 - 24小时在线 专业服务