Except that does almost the exact equivalent of the OPs code! (Did you bother to look?)
In reply to Re^2: subroutines which forks? by BrowserUk in thread subroutines which forks? by Anonymous Monk