Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

How do you use the multithreading in Perl 5.8? Is there a command line argument or is it a perl module? I can not find a doc on it any where.

Replies are listed 'Best First'.
Re: Multithreading
by chromatic (Archbishop) on Jan 03, 2003 at 01:03 UTC

    It's a compile-time option. Unless perl -V says you have threading enabled, you'll have to recompile. See perldoc perlthrtut for more details.

Re: Multithreading
by pg (Canon) on Jan 03, 2003 at 01:14 UTC
    There are two pragmas' (which is a special kind of module). Check document coming with Perl 5.8, looking for those two pragmas' under the pragmas section:
    1. threads
    2. threads::shared