Sorry, the error was not related with HTML::Entities. The error was when modifying the data obtained with my $table = $req->param; (libapreq2)
With previous versions i guess $table could be modified (my prg worked!), now i get the error Can't locate object method "STORE" via package "APR::Request::Param::Table" I have workarounded it by using other variables which can obviously be modified. >I used a function to "manually" change some html not-xml-allowed into the >correspondent >correct codification. >Now i've tried to use the HTML::Entities cpan module. >This is what i had (some ugly regex) >foreach (2..14) {$data->{$p} =~ s/$cri->[$_]/$rel->[$_]/g;} >This is what i've tried >use HTML::Entities(); >$data->{$p} = HTML::Entities::encode($data->{$p}); >And that's what i get after the "internal error" >[Sat Oct 22 13:32:27 2005] [error] [client 127.0.0.1] Can't locate object >method "STORE" >via package "APR::Request::Param::Table" at >/usr/local/apache2/lib/perl/Blogum/Generic.pm >line 112.\n >I didn't expect an error in APR module ... is this an evidence of >incompatibility or >something similar? >mod-xslt/1.3.8 >Apache/2.0.55 (Unix) >mod_apreq2-20050712/2.1.3-dev (it is supposed to be 2-2.06?) >mod_perl/2.0.1 >Perl/v5.8.7 >HTML-Parser-3.45 >--------------------------------------------------------- >Juega y llévate una PS2 two: <a href="/app/message?l=es&o=8&url=http%3A%2F%2Fjuegos%2Eya%2Ecom%2Fconsolas%5Fy%5Fpc%2F2005%2F09%2Fconcurso%2Dps2%2Ehtml" target="_blank">http://juegos.ya.com/consolas_y_pc/2005/09/concurso-ps2.html</a> >Ya.com ADSL 2MB + Llamadas 24 horas: desde 26,95 /mes + IVA. Navega y habla >de forma ilimitada. Sin compromiso de permanencia. <a href="/app/message?l=es&o=8&url=http%3A%2F%2Facceso%2Eya%2Ecom%2FADSLllamadas%2F2mb" target="_blank">http://acceso.ya.com/ADSLllamadas/2mb</a> --------------------------------------------------------- Juega y llévate una PS2 two: http://juegos.ya.com/consolas_y_pc/2005/09/concurso-ps2.html Ya.com ADSL 2MB + Llamadas 24 horas: desde 26,95 /mes + IVA. Navega y habla de forma ilimitada. Sin compromiso de permanencia. http://acceso.ya.com/ADSLllamadas/2mb