in reply to Perl thread confustion
1. The most recent documentation for threads.pm states that variables are by default thread local? I have also read that everything gets copied over to a new thread. Which is it?
Well, first everything is copied over to the new thread, then because everything is a copy, any changes to the copied variables don't effect the values of those variables in other threads, i.e. everything is thread local.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Perl thread confustion
by BrowserUk (Patriarch) on Feb 15, 2013 at 07:38 UTC | |
by 7stud (Deacon) on Feb 15, 2013 at 19:29 UTC | |
by BrowserUk (Patriarch) on Feb 15, 2013 at 20:28 UTC |
In Section
Seekers of Perl Wisdom