in reply to How do I start two programs without waiting for first one to be finished ?
Or use fork() explicitly: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: $!"; }
|
|---|