Subject: | cpan modules does not cooperate in CentOS release 5.7 |
You use in your module V2.0pm
use LWP::UserAgent qw(:strict);
use HTTP::Request qw(:strict);
while those two does not work with tags ":script" when trying to load
those modules together:
use Module::Load::Conditional qw[can_load];
use Text::CSV;
use LWP::UserAgent qw(:strict);
use HTTP::Request qw(:strict);
The error occurs only under CentOS release 5.7
and says:
"strict" is not defined in %LWP::UserAgent::EXPORT_TAGS at ./test.pl
line 38 main::BEGIN() called at
/usr/lib/perl5/site_perl/5.8.8/LWP/UserAgent.pm line 38 eval {...}
called at /usr/lib/perl5/site_perl/5.8.8/LWP/UserAgent.pm line 38 Can't
continue after import errors at ./test.pl line 38