I have a Perl script that runs fine from the command line, but when run within Perl Registry (Apache), I get errors like
Bareword "XYZ" not allowed while "strict subs"
I've identified two cases when this happens so far:
When defining a constand XYZ, then defining an inline-package, and finally reverting to
package mail: Then XYZ is not known any more.When the inline-package wants to access a global constant via
main::XYZor::XYZ
So it seems the package scope is different under mod_perl.