http://www.perlmonks.org?node_id=929098


in reply to Win32, fork and XS globals

What options are there that will bring Windows into line with Linux ?

Use cygwin Perl.

Win32 Perl's fork creates a thread and then makes copies of the Perl interpreter. Copying the Perl interpreter does not make copies of non-Perl global data such as C globals or things loaded from *.dll files.

If you want to make a copy, then you need to use something tied to the Perl interpreter instance. You could use a Perl package variable (global), for instance.

- tye