Subject: | redefined warnings |
I get errors like this in version 0.71 with :
Subroutine LWP::UserAgent::redirect_ok redefined at
/usr/local/share/perl/5.8.8/SOAP/Transport/HTTP.pm line 41.
Subroutine LWP::Protocol::collect redefined at
/usr/local/share/perl/5.8.8/SOAP/Transport/HTTP.pm line 59.
For what it's worth, I attached the patch I used to suppress these warnings.
(Though whether it's such a good idea to redefine these subroutines,
I'm not so sure...)
Subject: | soaplite.diff |
--- /usr/local/share/perl/5.8.8/SOAP/Transport/HTTP.pm~ 2008-02-19 00:10:30.000000000 +0100
+++ /usr/local/share/perl/5.8.8/SOAP/Transport/HTTP.pm 2008-03-03 11:50:11.000000000 +0100
@@ -37,9 +37,11 @@
return if $_patched;
BEGIN { local ($^W) = 0; }
{
+ no warnings 'redefine';
sub LWP::UserAgent::redirect_ok; *LWP::UserAgent::redirect_ok = sub {1}
}
{
+ no warnings 'redefine';
package LWP::Protocol;
my $collect = \&collect; # store original
*collect = sub {