in reply to Return Type of threads->create
FUNCTION may either be the name of a function, an anonymous subroutine +, or a code ref. my $thr = threads->create('func_name', ...); # or my $thr = threads->create(sub { ... }, ...); # or my $thr = threads->create(\&func, ...);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Return Type of threads->create
by ajeet@perl (Acolyte) on Apr 20, 2010 at 07:22 UTC |