Help for this page

Select Code to Download


  1. or download this
     my @threads = threads->new( \&worker, \$_ ) for @flags;
    
  2. or download this
    my @threads;
    for my $i (0..$#flags) {
      push(@threads, threads->new(\&worker, \$flags[$i]);
    }