in reply to Re^2: Multi-threaded scriptin thread Multi-threaded script
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.