On 18/08/09 02:30 , James Smith wrote: > > Phillipe, > > Thnx, that seems to have solved the problem - I'd been slurping in the > page template file with a $/..
In theory, if you used local $/, it should work, maybe. Can you try this small patch ? Index: src/modules/perl/modperl_perl_global.c =================================================================== --- src/modules/perl/modperl_perl_global.c (revision 805561) +++ src/modules/perl/modperl_perl_global.c (working copy) @@ -372,7 +372,7 @@ modperl_perl_global_svpv_save(pTHX_ modperl_perl_global_svpv_t *svpv) { svpv->cur = SvCUR(*svpv->sv); - strncpy(svpv->pv, SvPVX(*svpv->sv), sizeof(svpv->pv)); + strncpy(svpv->pv, SvPV_nolen(*svpv->sv), sizeof(svpv->pv)); } static void > it also explains why switching from > using perl-script to modperl as the handler type also resolved the issue... Yup, in perl-script mode, it does a lot of housekeeping behind the scenes. -- Philippe M. Chiasson GPG: F9BFE0C2480E7680 1AE53631CB32A107 88C3A5A5 http://gozer.ectoplasm.org/ m/gozer\@(apache|cpan|ectoplasm)\.org/
signature.asc
Description: OpenPGP digital signature