my @threads = threads->new( \&worker, \$_ ) for @flags;