in reply to Perl and Perl Tk question.
In order to know if there is existing code that is more efficient, we need to know how efficient your code is. If you post it, maybe some of your fellow monks can suggest ways to tweak it or give you suggestions for alternative ways of writing it.
davidj