"Thomas Delaet" <[EMAIL PROTECTED]> wrote: > I want to use perl's threads module. It seems that this is not > supported on OpenBSD (4.0 but since the perl version is the same in > 4.1 and 4.2, I guess this problem still exists).
You'll have to rebuild perl from source if you want threads. It's a fairly painless but somewhat lengthy process if this is your first time. Check out the INSTALL file in /usr/src/gnu/usr.bin/perl - it explains everything. Perl threads on Unix aren't nearly as useful as on platforms like Win32 that don't have a native fork(), and even there you have to be careful because Perl's threads are not at all "lightweight". You can easily end up with processes that have huge memory footprints if you don't exert extreme caution. Also some modules aren't safe to use in multiple threads. Another alternative that's cross-platform and perhaps more robust is POE (http://poe.perl.org). This is just a CPAN module, so you don't have to rebuild perl in order to use it. -- Stephen Takacs <[EMAIL PROTECTED]> http://perlguru.net/ 4149 FD56 D078 C988 9027 1EB4 04CC F80F 72CB 09DA