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

Does anyone know why the fork() call is not recognized in Windows Perl? What lib do I need to include? The error I get is "The Unsupported function fork function is unimplemented at hay.pl line 104"

Replies are listed 'Best First'.
Re: Fork call in Windows Perl
by clintp (Curate) on Feb 21, 2001 at 06:32 UTC
    You need Perl 5.6 with the interpreter threads option active when you build it. Get Activestate's distribution -- it's got what you need and very little hassle.

      Except that the emulation for fork() in Win32 Perl 5.6.0 is still experimental and, for me at least, extremely easy to break. I wouldn't recommend using it for anything you considered important.

              - tye (but my friends call me "Tye")
(tye)Re2: Fork call in Windows Perl
by tye (Sage) on Feb 22, 2001 at 00:27 UTC

    fork() needs to be supported by the kernel. The Microsoft kernels do not support it. Perl 5.6.0 emulates something rather similar to fork(), though only for Perl scripts, by using threads (but, as I say above, this support is too new to be of much use).

    There is a FAQ on the fork() emulation for Win32 Perl, though I didn't find it in the short time I spent looking for it. ):

            - tye (but my friends call me "Tye")

    Updated to s/to/not/. Thanks, PodMaster.