for ( 1..2 ) { my $temp_scalar = threads -> create ( \&worker ); }