system "( sleep 10; ls -l ) &"; #### if ( $pid = fork ) { # this is the parent } elsif ( defined $pid ) { # this is the child system "myprogram"; } else { die "can't fork: $!"; }