Subject: | Unable to tell if Compress::ZLib already loaded |
If a script which uses SOAP::Lite where the compression_threshold is defined,
but it also has the line
require Compress::ZLib;
then there will be warnings about redefining routines:
Subroutine AUTOLOAD redefined at C:/Perl/site/lib/Compress/Zlib.pm line 84.
Subroutine isaFilehandle redefined at C:/Perl/site/lib/Compress/Zlib.pm line 99
Subroutine isaFilename redefined at C:/Perl/site/lib/Compress/Zlib.pm line 108.
Subroutine gzopen redefined at C:/Perl/site/lib/Compress/Zlib.pm line 115.
...
The module that loads Compress::ZLib should check to see if it is already loaded before trying to reload it.