1. 查找已有的模块
[url=http://search.cpan.org/]http://search.cpan.org/[/url]
2. 输入XML查询,选择评价较高的,且可以满足自己需求的模块:
XML::Simple
use warnings;
use XML::Simple;
use Data::Dumper;
#将XML文件转化为Hash结果
[url=http://search.cpan.org/~grantm/XML-Simple-2.18/lib/XML/Simple.pm]http://search.cpan.org/~grantm/XML-Simple-2.18/lib/XML/Simple.pm[/url]
XML::Smart
my $xml=XML::Smart->new('abstract_sample.xml');
更多使用参考:
[url=http://search.cpan.org/~gmpassos/XML-Smart-1.6.9/lib/XML/Smart.pm]http://search.cpan.org/~gmpassos/XML-Smart-1.6.9/lib/XML/Smart.pm[/url]