Copyright © tutorialspoint.com

PERL wait Function


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


Copyright © tutorialspoint.com