Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Re: [Andy] Returning CODE(0x9e10d20) insttead of variable

Quote Reply
Re: [Andy] Returning CODE(0x9e10d20) insttead of variable In reply to
Andy:

Thanks. First I should say it is a very busy site, maybe 500,000 page views (that have this code) a day. I get 20-30 errors a day like this. So it is very sporatic.

Here is the global:

sub {
my ($rec) = @_;
if ($rec->{'Rating'} eq '10.00') {'20'; }
elsif ($rec->{'Rating'} eq '0.00') {'00'; }
elsif ($rec->{'Rating'} eq '') {'00'; }
elsif ($rec->{'Rating'} le '0.75') {'01'; }
elsif ($rec->{'Rating'} le '1.25') {'02'; }
elsif ($rec->{'Rating'} le '1.75') {'03'; }
elsif ($rec->{'Rating'} le '2.25') {'04'; }
elsif ($rec->{'Rating'} le '2.75') {'05'; }
elsif ($rec->{'Rating'} le '3.25') {'06'; }
elsif ($rec->{'Rating'} le '3.75') {'07'; }
elsif ($rec->{'Rating'} le '4.25') {'08'; }
elsif ($rec->{'Rating'} le '4.75') {'09'; }
elsif ($rec->{'Rating'} le '5.25') {'10'; }
elsif ($rec->{'Rating'} le '5.75') {'11'; }
elsif ($rec->{'Rating'} le '6.25') {'12'; }
elsif ($rec->{'Rating'} le '6.75') {'13'; }
elsif ($rec->{'Rating'} le '7.25') {'14'; }
elsif ($rec->{'Rating'} le '7.75') {'15'; }
elsif ($rec->{'Rating'} le '8.25') {'16'; }
elsif ($rec->{'Rating'} le '8.75') {'17'; }
elsif ($rec->{'Rating'} le '9.25') {'18'; }
elsif ($rec->{'Rating'} le '9.75') {'19'; }
elsif ($rec->{'Rating'} le '9.99') {'19'; }
else {'00'; }
}


Obviously, the two-digit number comes back into rateXX.gif (or should!) to givve the correct image.

I realize 20-30 errors a day is not too much, but I am not sure whether this is just normal, and it is OK to ignore, or whether I might have done something!
dave

Big Cartoon DataBase
Big Comic Book DataBase
Subject Author Views Date
Thread; hot thread Returning CODE(0x9e10d20) insttead of variable carfac 4880 Feb 5, 2004, 8:39 AM
Thread; hot thread Re: [carfac] Returning CODE(0x9e10d20) insttead of variable
Andy 4870 Feb 5, 2004, 8:52 AM
Thread; hot thread Re: [Andy] Returning CODE(0x9e10d20) insttead of variable
carfac 4827 Feb 5, 2004, 9:09 AM
Thread; hot thread Re: [carfac] Returning CODE(0x9e10d20) insttead of variable
afinlr 4827 Feb 5, 2004, 9:17 AM
Thread; hot thread Re: [afinlr] Returning CODE(0x9e10d20) insttead of variable
carfac 4841 Feb 5, 2004, 9:24 AM
Thread; hot thread Re: [carfac] Returning CODE(0x9e10d20) insttead of variable
carfac 4873 Feb 5, 2004, 9:26 AM
Post; hot thread Re: [carfac] Returning CODE(0x9e10d20) insttead of variable
carfac 4810 Feb 5, 2004, 9:28 AM
Thread; hot thread Re: [carfac] Returning CODE(0x9e10d20) insttead of variable
afinlr 4842 Feb 5, 2004, 9:30 AM
Thread; hot thread Re: [afinlr] Returning CODE(0x9e10d20) insttead of variable
carfac 4803 Feb 5, 2004, 9:45 AM
Thread; hot thread Re: [carfac] Returning CODE(0x9e10d20) insttead of variable
Jagerman 4782 Feb 6, 2004, 3:02 PM
Post; hot thread Re: [Jagerman] Returning CODE(0x9e10d20) insttead of variable
carfac 4741 Feb 6, 2004, 4:14 PM
Thread; hot thread Re: [Jagerman] Returning CODE(0x9e10d20) insttead of variable
afinlr 4757 Feb 19, 2004, 6:11 AM
Post; hot thread Re: [afinlr] Returning CODE(0x9e10d20) insttead of variable
carfac 4704 Feb 25, 2004, 2:07 PM
Post; hot thread Re: [carfac] Returning CODE(0x9e10d20) insttead of variable
Andy 4828 Feb 5, 2004, 9:22 AM
Post; hot thread Re: [carfac] Returning CODE(0x9e10d20) insttead of variable
afinlr 4818 Feb 5, 2004, 9:13 AM