start page | rating of books | rating of authors | reviews | copyrights

Perl in a Nutshell

Perl in a NutshellSearch this book
Previous: Reference: new Chapter 8
Standard Modules
Next: Reference: cond_broadcast
 

async

$

t

 
= async {


block


};

Creates a new thread to execute the block that follows it. The block is treated as an anonymous subroutine (and therefore has a semicolon after the closing bracket). Returns a thread object. async isn't exported by default, so you can either specify use Thread qw(async); or fully qualify the name ( Thread::async ).


Previous: Reference: new Perl in a Nutshell Next: Reference: cond_broadcast
Reference: new Book Index Reference: cond_broadcast

Library Navigation Links

Copyright © 2001 O'Reilly & Associates. All rights reserved.