in reply to
Multi Threading in perl sample code
Since you’re using Unix, do it “the Unix way.” Write a script that does its part, then invoke as many parallel-executing copies of that script from another script or the command-line. The program does not take on all the fancy-pants work of doing everything: the shell does; the user does. Each instance of the worker-bee (Perl) script simply finds another unit of work to do and does it, running until it finds no more work to do. It has no awareness of any program other than itself.