use warnings; #mmmm use threads; sub myfunc { print "Checking out port\n"; wait 2; return 42; } print "Starting thread\n"; $thread = threads->new(\&myfunc()); print "doing some stuff\n"; wait 4; $result = $thread->join(); print "The result is $result\n";
In reply to Re^3: Fastest way to determine whether a specific port is open via a Socket
by Nemurenai
in thread Fastest way to determine whether a specific port is open via a Socket
by avo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |