Ignoring the question of whether you should use threads, see threads for how you could use them.
In reply to Re: threading a perl script by igelkott in thread threading a perl script by Boetsie