On Wed, 20 Feb 2008, Emil Janev wrote:
> my $logger = get_logger(undef);
That's an interesting case. While
# get a logger for the current package
get_logger()
and
# get the root logger
get_logger("")
are defined cases, using 'undef' as in
get_logger( undef )
isn't defined. There was a change in 1.15 that now brings this undefined
behavior to light (unfortunately for you :).
If you want to use a variable to toggle between "" and the empty list,
use an array:
my @array = ();
my $logger = get_logger(@array);
# vs.
my @array = ("");
my $logger = get_logger(@array);
Does that work for you?
-- Mike
Mike Schilli
[EMAIL PROTECTED]
-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/log4perl-devel