Why are you using two backslashes?
my $thr0 = threads->new(\\&scan, "$net@ip[0..63]", $port); # ^^
Remove one of them and you'll at least get past the "Not a CODE reference" error.
In reply to Re: About "thread failed to start:"
by BrowserUk
in thread About "thread failed to start:"
by hxbsy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |