in reply to A very deep recursion and the GD module (problem)

Your @files in your update sub looks ambiguous. Try to add use strict; to see if you get additional error messages.