in reply to Linking to Web from Tk Fork, Spawn and Proc Background

Don't fork. It only takes a second or two to spawn the cmd.exe process (which runs the start), and that process is backgrounded, so control returns to your program pretty quickly.

Replies are listed 'Best First'.
Re^2: Linking to Web from Tk perl
by InterGuru (Sexton) on Feb 03, 2005 at 15:16 UTC
    I originally did not fork. The program would hang up. Only when I ended the program with a cntrl-c, would the web site would appear. That is what led me to try a fork in the first place.
      Here's how I do it in Adso.pl, a Tk-based PerlMonks client:
      require Win32; { my $pid; Win32::Spawn( $path_to_firefox_exe, qq(-url "$url"), $pid ); }
      I may have been wrong about the cmd.exe thing.