- or download this
use threads;
use test;
...
my $thread=threads->create("forthread", ($argument));
$thread->join();
exit(0);
- or download this
package test;
...
my ($arg)=@_;
return 0;
} #forthread
- or download this
use threads;
use test;
...
my $thread=threads->create("forthread", (argument));
$thread->join();
exit(0);
- or download this
package test;
...
sub another{
return 0;
} #another