theducks: (Default)
theducks ([personal profile] theducks) wrote2008-10-28 10:14 pm
Entry tags:

Dear lazyweb..

So, this Perl script should draw a rainbow - http://theducks.org/gdtest.txt

But it doesn't, it gets to the end of the red -> yellow transition and dies ( see http://theducks.org/gdtest3.cgi ). So you'd think, my loop/if/elsif isn't working correctly.. but when you print the values, they're correct..

Any ideas?

I have a feeling this has bitten me before, and it's memory related, but now I'm not so sure..

[identity profile] theducks.livejournal.com 2008-10-28 01:43 pm (UTC)(link)
Sonofa.. that is what it was..

GD::Image->trueColor(1); and it all works :)

Thanks to you and Zanchey for the help