Skip Menu |

This queue is for tickets about the libwww-perl CPAN distribution.

Report information
The Basics
Id: 72272
Status: rejected
Priority: 0/
Queue: libwww-perl

People
Owner: Nobody in particular
Requestors: pawel [...] azotel.com
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 6.03
Fixed in: (no value)



Subject: cpan modules does not cooperate in CentOS release 5.7
I am not sure where should I post this bug, so I am posting it under each of the modules in question. All modules are the newest version. Error does not occur in older versions of CentOS. Try to execute the script: #!/usr/bin/perl #---------THESE MODULES DOES NOT COOPERATE----# use Module::Load::Conditional qw[can_load]; use Text::CSV; use LWP::UserAgent qw(:strict); use HTTP::Request qw(:strict); #-----------------------------------------------# under CentOS release 5.7. Error you get is: "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
Why would you pass in the ':strict' option to LWP::UserAgent (or HTTP::Request) use statement? It's not documented to behave this way and you get an error message that's appropriate given that.
From: pawel [...] azotel.com
OK ... I don't do that but VUser::Google::ProvisioningAPI does.. sorry. On Wt 08 Lis 2011, 14:27:29, GAAS wrote: Show quoted text
> Why would you pass in the ':strict' option to LWP::UserAgent (or > HTTP::Request) use statement? > It's not documented to behave this way and you get an error message > that's appropriate given > that.
From: pawel [...] azotel.com
Also please notice that errow doesn't show up when you comment out first or second use statement. On Wt 08 Lis 2011, 15:52:10, pawel@azotel.com wrote: Show quoted text
> OK ... I don't do that but VUser::Google::ProvisioningAPI does.. > > sorry. > > On Wt 08 Lis 2011, 14:27:29, GAAS wrote:
> > Why would you pass in the ':strict' option to LWP::UserAgent (or > > HTTP::Request) use statement? > > It's not documented to behave this way and you get an error message > > that's appropriate given > > that.
> >
I'm not able to trigger any error on any of the perl's here for unknown tags (like the ':strict' you used). So, it's possible that there is something in the CentOS perl that makes a difference. It would still not be a bug in LWP or HTTP-Message, and the fix is to remove the qw(:strict).