![]() |
|
There's more than one way to do things | |
PerlMonks |
Re^3: Unexpected output from fork (Win32)by BrowserUk (Patriarch) |
on Aug 09, 2004 at 17:51 UTC ( #381312=note: print w/replies, xml ) | Need Help?? |
A couple of things. First, as Win32 pseudo-forks are threads, you can (apparently) use threads::shared to share an array (or other data) between them: From threads::shared POD:
Though I admit I've never actually tried this. Second. Doing the equivalent of your OP code using threads is much simpler.
In Section
Seekers of Perl Wisdom
|
|