Quoth [EMAIL PROTECTED] ("David Golden"):
> On Sat, Nov 1, 2008 at 8:31 PM, Dr.Ruud <[EMAIL PROTECTED]> wrote:
> > C<use forks;>
> > :)
>
> Given that the original post was about Padre -- a multi-platform IDE
> for Perl -- forks may not be the best choice due to platform
> differences. Even if suboptimal, Perl threads would seem likely to
> behave more consistently across platforms.
However, many platforms with fork(2) don't usually have threaded perls.
It seems to me something like
BEGIN { eval { require forks; } }
use threads;
covers all the bases, with appropriate
if ($Config{useithreads}) {
# depend on threads
}
else {
# depend on forks
}
logic in Build.PL.
Ben