home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
perl560.zip
/
ext
/
Thread
/
join2.t
< prev
next >
Wrap
Text File
|
1999-07-20
|
246b
|
13 lines
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);
sleep 2;
print "Joining with $t\n";
@results = $t->join();
print "Joining returned @results\n";