Tutorials Point


  Perl Home

  PERL Functions

© 2013 TutorialsPoint.COM


  Home     References     About TP     Advertising  

PERL wait Function



Advertisements

Syntax

wait


Definition and Usage

Waits for a child process to terminate, returning the process ID of the deceased process. The exit status of the process is contained in $?.

Return Value

  • -1 if there are no child processes

  • Process ID of deceased process



Advertisements


  

Advertisements