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

Perl in a Nutshell

Perl in a NutshellSearch this book
Previous: 8.148 Thread Chapter 8
Standard Modules
Next: Reference: async
 

new

$

t

 
= new Thread \


&sub


[
, 

params


]

Constructor. Starts a new thread in the referenced subroutine, \sub , returning a thread object that represents the new thread. The optional parameter list is passed to the subroutine. Execution continues in both the new thread and the code.


Previous: 8.148 Thread Perl in a Nutshell Next: Reference: async
8.148 Thread Book Index Reference: async

Library Navigation Links

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