In python we can use multiprocessing modules. If there is a similar library in Perl and Ruby, would you teach it? I would appreciate it if you can include a brief sample.
Ruby:
Perl:
Also, Perl's threads are native operating system threads, so you can just use those to take advantage of multiple cores.