找找SAX模块,看到一个文章这样写的:

$XML::Simple::PREFERRED_PARSER="XML::SAX::Expat";

--
blog: http://hi.baidu.com/smallfish_xy


2009/7/27 Huangj <[email protected]>

> 今天用 XML::Simple 解析 160M的 xml 文件,跑了3分钟后 Out of memory.
> 有没有有没有占用内存比较少的 xml 解析模块
>
> ------------------------------
> 网易YEAH.NET免费邮箱:您的终身免费邮箱 <http://www.yeah.net/?from=footer>>
>

--~--~---------~--~----~------------~-------~--~----~
您收到此信息是由于您订阅了 Google 论坛“PerlChina Mongers 讨论组”论坛。
 要在此论坛发帖,请发电子邮件到 [email protected]
 要退订此论坛,请发邮件至 [email protected]
 更多选项,请通过 http://groups.google.com/group/perlchina?hl=zh-CN 访问该论坛
-~----------~----~----~----~------~----~------~--~---

回复