I have not read a comment about Windows and perl. So here my comments.

I tried the thread thing which does not work. (ActivePerl 5.6-build 62x) Now I use Win32::ProcFarm system for parallelization of code under Win32 by Toby Everett under Artistic licence. This let me start child-processes, which are Perl scripts and and do remote procedure calls over sockets, giving complete Perl data structures as parameters. It is not quit clean yet, but it works nice for me.

Depending on your tasks, parallization is not always a matter of CPUs. My App is a (preforking) server with a fixed number of childs (for now). It accepts mainframe socket connections. My childs are a downloader, which initiates source download from the mainframe via FTP and a preparer, which compiles the downloaded objects. Downloading is a task, which really allows parallel processing of other tasks. Another parallel thing feeds a GUI with status information.
Do not underestimate the coordination of parallel processes, if they do not have isolated tasks.

I do Logging with Log::Agent, this works great for me and I think it is a great module.

Ask me for more information

Update:
As Massyn answered to this post, it makes a great difference on which OS you run parent and child processes. I could not get communication via pipes, files or exit codes to work on Windows. My App depend on a windows product, so I did use a windoze only solution. The anonymous monk did not tell about his plattform.
Brutha


In reply to Re: How do I run subroutines in parallel? by Brutha
in thread How do I run subroutines in parallel? by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.