in reply to threading a perl script

If your operations are simple string operations, threading or any kind of parallelism will not help at all, because IO takes much more time than the actual processing.

So, get a faster hard drive, or even better SSD.