in reply to memory usage/leaks
Secondly, depending on what version of Perl you're using, you might have a genuine memory leak. If you're not using 5.6.1, then I would suggest upgrading and trying again to see if the problem is still there.
Also, depending on your version of Tk, you might have memory leaks/circular references there. Many of the more complex packages can have memory leaks, especially earlier versions. Upgrade to the latest version of that.
Lastly, and most importantly, do NOT use global variables. Use lexical variables, declared using my within logical structures. That way, you aid Perl's memory allocations and bhelp free up more memory.
------
We are the carpenters and bricklayers of the Information Age.
Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement.
|
|---|