my $pid = fork; die "Can't fork!" unless defined $pid; &do_parent_stuff if $pid != 0; &do_kids_stuff if $pid == 0; exit;