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, ...);