use LWP; use threads; sub worker_thread { ... }