Hello.

Log::Log4perl (v. 1.16 as of this message) ignores multiple ‘use’ statements. Looking in the Changes file, I see that this is intentional:

1.04 2006/02/26
    ...
    *  (ms) Multiple calls to import (usually happens if 'use L4p' gets
called twice within the same namespace) caused nasty warnings, bug reported by Greg Olszewski. Fixed by ignoring subsequent
            calls from the same package to import().

But this breaks Business::Shipping’s test suite. So I’ve attached a patch that allows multiple ‘use’ statements to work, and also prevents the subroutine redefinition warnings. I’ve also included tests for both. I hope this is helpful.


Father Chrysostomos

Attachment: 020Easy.t
Description: Binary data


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
log4perl-devel mailing list
log4perl-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/log4perl-devel

Reply via email to