Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re^8: Execute a sub in the backgroundby egzoti4en (Initiate) |
on Feb 01, 2012 at 16:23 UTC ( [id://951263]=note: print w/replies, xml ) | Need Help?? |
Ok i understand. So is there a way to share a variable or maybe to sent a reference to the sub. What i want is to have a flag in the main process when its value is one the cycle in the thread to end. How can i do this. I checked the threads::schared but honestly i wasn't able to do anything. So if you could help me whit some example code it would be great
In Section
Seekers of Perl Wisdom
|
|