Yes, that is what you need to do.
Read the fine documentation for a great explanation of how to achieve this: http://perldoc.perl.org/threads/shared.html
Cheers,
R.
In reply to Re^3: Multi-threaded script
by Random_Walk
in thread Multi-threaded script
by dvinay
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |