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

Any one can help me , How to create thread using perl. I request you to explain with simple example.

Replies are listed 'Best First'.
Re: perl - thread
by samtregar (Abbot) on Aug 19, 2002 at 20:16 UTC
    use threads; threads->new(sub { print "Foo!\n"; });

    Now that I've fullfilled your request, could you fullfill one of mine? Read the perlthrtut and threads docs that comes with Perl.

    -sam