I
Ian Wilson
When I run the code below I get an unwanted warning and the expected result.
soapclientauto.pl line 11.
41.1C = 105.98F.
------------------------------------------------------
#!perl
use strict;
use warnings;
use SOAP::Lite +autodispatch =>
uri => 'http://www.example.com/Temperature',
proxy => 'http://localhost/cgi-bin/soapservice.pl';
{
no warnings 'deprecated';
print "41.1C = ", c2f(41.1), "F.\n";
}
------------------------------------------------------
ActiveState Perl 5.8.8 on XP
The warning arises when I use SOAP::Lite's "autodispatch" feature.
`no warnings;` suppresses the warning but seems overkill.
Is there a way to identify the category of warning so I can suppress it
more selectively?
Is there another way to avoid whatever the warning is warning me of
(which I don't understand) - assuming I don't want to tinker with
SOAP::Lite?
Use of inherited AUTOLOAD for non-method main::c2f() is deprecated atsoapclientauto.pl
soapclientauto.pl line 11.
41.1C = 105.98F.
------------------------------------------------------
#!perl
use strict;
use warnings;
use SOAP::Lite +autodispatch =>
uri => 'http://www.example.com/Temperature',
proxy => 'http://localhost/cgi-bin/soapservice.pl';
{
no warnings 'deprecated';
print "41.1C = ", c2f(41.1), "F.\n";
}
------------------------------------------------------
ActiveState Perl 5.8.8 on XP
The warning arises when I use SOAP::Lite's "autodispatch" feature.
`no warnings;` suppresses the warning but seems overkill.
Is there a way to identify the category of warning so I can suppress it
more selectively?
Is there another way to avoid whatever the warning is warning me of
(which I don't understand) - assuming I don't want to tinker with
SOAP::Lite?