my $pid; if (!defined($pid = fork)) { warn "cannot fork: $!"; return; } elsif ($pid) { warn "begat $pid"; return; # I’m the parent } exec 'mozilla', "$url"; #### exec "mozilla -remote \"openurl($url,new-tab)\"";