in reply to Re: Thread Error
in thread Thread Error

Thanx for the quick response, I am new to Perl in Unix, It would be a real help if u can provide some more details on how to implement threads in Perl on Unix. Note :- The same syntax works fine when I run the code in Windows (Perl 5.8.0).

Replies are listed 'Best First'.
Re: Re: Re: Thread Error
by castaway (Parson) on Dec 17, 2003 at 07:47 UTC
    It runs fine on Windows, because the Windows perls come with threads built-in (cos Windows doesnt have forking, or some such reason.)

    Anyway, you'll either need to build a new perl on your system, which if you're a newbie to Unix probably isnt such a good idea, or you'll need to install a package (depending on which unix/linux/whatever you are using) containing a threaded perl.

    (Theres no way to just 'add' thread support to the perl you have installed, it needs to be compiled that way.)

    If you do want to compile your own, go to perl-5.8.2, grab the source, and read the README and INSTALL docs..

    You'll probably benefit from reading 'man Thread', which explains this.

    C.