See the current Perl documentation for wait.
Here is our local, out-dated (pre-5.6) version:
wait - wait for any child process to die
Waits for a child process to terminate and returns the pid of the deceased
-1 if there are no child processes. The status is returned in