|Subject:||bare use line causes Apache to have fits|
For some reason that I don't fully understand, Locales is having problems when used with apache/mod_perl. I wrote a script with this line: use Locales::Country; and got back the following error message: is unsupported, trying en at /usr/local/lib/perl5/site_perl/5.10.0/Locales/Base.pm line 122. Error loading WebGUI::Shop::ShipDriver::UPS: Could not load WebGUI::Shop::ShipDriver::UPS because Unable to loa d ::en : Can't locate /en.pm in @INC (@INC contains: /data/WebGUI/lib /usr/local/lib/perl5/site_perl/5.10.0/i38 6-linux-thread-multi /usr/local/lib/perl5/site_perl/5.10.0 /usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread- multi /usr/lib/perl5/vendor_perl/5.10.0 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.10.0/i386-linux-thread-mult i /usr/lib/perl5/5.10.0 /usr/lib/perl5/site_perl . /etc/httpd) at (eval 1099) line 1. Note that there didn't seem to be a locale in there. The same code from a test script worked fine. I had to change the use line to: use Locales::Country qw/ en /; to make it work.