Michael G Schwern
Wed, 26 Sep 2007 23:20:10 -0700
David Golden wrote:
> On 9/26/07, David Landgren <[EMAIL PROTECTED]> wrote:
>> Wot, like
>>
>> use Config;
>> print "we can fork!" if $Config{d_fork};
>
> Yes -- but which of the thread Config option do I use to check if it
> supports threads?
$Config{'useithreads'}
The other one refers to 5.005 threads which nobody should use anymore.
> And what's the relation of $Config{d_vfork} to $Config{d_fork}? Is
> having either sufficient?
$Config{'d_fork'} or $Config{'d_pseudofork'}
Ignore d_vfork, it's just an internal consideration.
> Unfortunately, Config isn't always the clearest to the non-p5p crowd.
Most of this can be cribed from the core tests.
--
Stabbing you in the face for your own good.