mirror of
https://github.com/opnsense/src.git
synced 2026-02-20 00:11:07 -05:00
11 lines
268 B
Perl
11 lines
268 B
Perl
use Thread;
|
|
sub foo {
|
|
print "In foo with args: @_\n";
|
|
return (7, 8, 9);
|
|
}
|
|
|
|
print "Starting thread\n";
|
|
$t = new Thread \&foo, qw(foo bar baz);
|
|
print "Joining with $t\n";
|
|
@results = $t->join();
|
|
print "Joining returned ", scalar(@results), " values: @results\n";
|