Re: Warnings after upgrade

Mike Mimic <[email protected]> Fri, 27 Aug 2004 12:47:08 -0700 (PDT)
Newsgroups gmane.comp.lang.perl.modules.mail-box
Message-ID <[email protected]>
Hi!

I also got an error:

Can't use string ("") as a subroutine ref while
"strict refs" in use at
/usr/share/perl5/Mail/Reporter.pm line 111.

I changed:

my $text = join '', @_;
$trace_callback->($thing, $level, $text)
if $prio >= $thing->{MR_trace};

to:

my $text = join '', @_;
$trace_callback->($thing, $level, $text)
if ($trace_callback ne '') && $prio >=
$thing->{MR_trace};

And now CGI script works but this is only a hack.


Mike


		
__________________________________
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail