Hi, I have written a mod_perl handler that
"require" other Perl modules; these modules use the pragma
'warnings' (i.e. 'use warnings').
When I start httpd I get this message in error log:Can't upgrade that
kind of scalar (#1) (P) The internal sv_upgrade routine
adds "members" to an SV, making ==3Dit into a more
specialized kind of SV. The top several SV types are
so specialized, however, that they cannot be
interconverted. Thismessage indicates that such
a conversion was attempted.Uncaught exception from user
code: Can't upgrade that kind of
scalar.If I eliminate 'use warnings' calls all is OK!Note that I
have problems only for package required whenhttpd starts; infact when I
process the request I, dinamically, require other packages (according
to URI) which includethe pragma 'use warnings' and all is OK!!I looked
up in the mod_perl guide and found in the section"Warnings and Errors
Troubleshooting" that error'Can't upgrade that kind of scalar"was fixed
in mod_perl 1.23.Currently I use httpd 1.3.22 and mod_perl 1.26 (and
perl5.6.1)So what's wrong!?!Thank you in
advance!!
Marco
Guazzone
ICQ#: 107450046