Also, check out WWW::Mechanize. It may simplify a lot of what you're doing there.
-Paul
In reply to Re: how to add threads in the script by jettero in thread Threads problem with Tk by go0913