in reply to Re: sharing array of arrays between threads
in thread sharing array of arrays between threads
You should generally be using subroutine() instead of &subroutine(), i.e. no leading ampersand (&). See perlsub.
Actually, if you read threads::shared, you'll find that his use of &share([]); is exactly the correct thing to do in this case.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: sharing array of arrays between threads
by kcott (Archbishop) on Aug 10, 2012 at 10:23 UTC | |
by bebe (Novice) on Aug 10, 2012 at 23:51 UTC |