Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Win32, fork and XS globals (cygwin)

by tye (Sage)
on Oct 02, 2011 at 05:00 UTC ( #929098=note: print w/replies, xml ) Need Help??


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        

  • Comment on Re: Win32, fork and XS globals (cygwin)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://929098]
help
Chatterbox?
[Discipulus]: silly one: can i dump all CORE functions?
[Corion]: Hmm - print for keys %CORE:: maybe?
[Corion]: Hm - nope, that only gives me GLOBAL:: as entry. Maybe you can't ...
[Discipulus]: just got GLOBAL::

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (10)
As of 2017-05-23 09:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?