Skip Menu |

This queue is for tickets about the Log-Log4perl CPAN distribution.

Report information
The Basics
Id: 6441
Status: resolved
Priority: 0/
Queue: Log-Log4perl

People
Owner: Nobody in particular
Requestors:
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.45
Fixed in: (no value)



Subject: useless use of string eval in Log4perl.pm line 109
Using eval just to assign a variable a value is a waste. Simply replace my $string = "\$${caller_pkg}::_default_logger = \$logger"; eval $string or die "$@"; with ${ $caller_pkg . '::_default_logger'} = $logger; Cheers
[guest - Thu May 27 23:18:17 2004]: Show quoted text
> Using eval just to assign a variable a value is a waste. > Simply replace > > my $string = "\$${caller_pkg}::_default_logger = \$logger"; > eval $string or die "$@";
fixed in 0.46 - thanks! -- Mike