It would seem so. I can't say for sure, because I usually use Imager, or ImageMagick, but GD does act slightly different from most Perl objects because of it's c base. It actually runs well in a loop, and will not gain "program memory" if you undef
it in the loop. I havn't tested it, but I would suspect that if you just rely on the lexical scoping, some of the previous GD object will get left for the the next run. Those Image modules are tricky. ImageMagick has a recipe too, it's
undef @$image;
which allows you to reuse the IM object, but flushes out all the old data.
I'm not really a human, but I play one on earth.
flash japh
| [reply] [d/l] |