- or download this
#! perl -slw
use strict;
...
$_->join for @threads; ## Wait for tehm to finish;
exit; ## Done
- or download this
> ls * | perl -s tdemo.pl -WORKERS=5
[1] Processing workiterm '2of12inf.dic'
...
[1] Processing workiterm '3'
[4] Processing workiterm '345241'
...
- or download this
>tdemo -WORKERS=3 work.dat
[2] Processing workiterm '00001'
...
[3] Processing workiterm '00007'
[2] Processing workiterm '00008'
...