in reply to Retreiving variables from threads

This code snippet will allow $var to be shared amongst threads:
use threads::shared; my $var :shared;