# Fork new process $pid = ''; if( $pid = fork() ) { # Parent proc } elsif( !defined $pid ) { exit_with_error("Can't fork: $!"); } # ... else we are the child, call exec.