Currently, I have a perl program with a gui in Tk that is essentially a search application. In order to run the search the program parses a certain file type into xml which is done by calling a module that was written exactly for this purpose. The first time that I hit the search button of my gui it works exactly like it is supposed to, but after that the module that creates the xml returns an error saying a certain array hasn't been initialized. Is this a known issue with Tk and GUIs? I don't understand why there would be an issue if I am just calling a module for a second time which is unrelated to the first time.