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

Pereant, qui ante nos nostra dixerunt!