|
Posted by dubhead on March 16, 2007, 2:24 pm
Please log in for more thread options
Sisyphus wrote:
>
>
>> I have installed a shedload of modules to use SOAP::Lite on a Solaris 8
>> system with Perl 5.00503.
>>
>> When I start a script using SOAP::Lite I get following error:
>>
>>
>> Can't locate warnings.pm in @INC (@INC contains:
>> /home/marcr/perllibs/sun4-solaris /home/marcr/perllibs
>> /usr/perl5/5.00503/sun4-solaris /usr/perl5/5.00503
>> /usr/perl5/site_perl/5.005/sun4-solaris /usr/perl5/site_perl/5.005 .) at
>> /home/marcr/perllibs/SOAP/Transport/HTTP.pm line 39.
>> BEGIN failed--compilation aborted at
>> /home/marcr/perllibs/SOAP/Transport/HTTP.pm line 39.
>> ...propagated at /home/marcr/perllibs/SOAP/Lite.pm line 527.
>>
>>
>> That's a reasonable error, because the warnings pragma exists only from
>> perl 5.6.0.
>> But the SOAP-Lite-0.69 README says:
>>
>> "SUPPORTED PLATFORMS
>>
>> This library has been tested by the author with Perl versions 5.005
>> and 5.6.0 on different platforms: Windows 98/2K, Solaris 2.6, Linux 2.2.
>> Should run everywhere where Perl 5.004 or later runs."
>>
>> So what's going on. I am using perl 5.005 which is later than 5.004 and
>> I get an error due to a pragma missing from the perl version I am using.
>> And more importantly, how do I solve this problem without upgrading
>> perl?
>>
>
> Just find the offending 'use warnings;' and change it to '#use
> warnings;' :-)
>
> And complain to the module's author, if you're so disposed. (There's a
> line of thought that module authors should not be forcing you to see
> warnings generated by their modules.)
>
> If you then run your scripts with global warnings turned on (-w) you'll
> get to see any warnings from that module, anyway.
>
> Cheers,
> Rob
Actually it is a line saying "no warnings 'redefine'". Switching it of
will probably result in more warnings.
|