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.
In reply to Re^2: sharing array of arrays between threads
by BrowserUk
in thread sharing array of arrays between threads
by bebe
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |