HTML :: TagFilter命令行与apache

时间:2012-12-14 06:02:47

标签: linux perl apache

我在Fedora计算机上安装了CPAN的HTML::TagFilter

此代码段在命令行上运行正常:

my $tf = new HTML::TagFilter; 
$tf->deny_tags( { TABLE => {style => ["BORDER-BOTTOM"]} }); 
$tf->deny_tags( { TABLE => {prevstyle => ['any']} }); $str = $tf->filter($str);

但是当在Apache上运行相同的代码时,我收到此错误:

[Fri Dec 14 16:11:48 2012] [error] Can't locate object method "new" via
package "HTML::TagFilter" at 
/usr/local/lib/perl5/site_perl/5.10.0/HTML/TagFilter.pm line 320.

这个错误可能是什么原因?

0 个答案:

没有答案