in reply to How to start default browser on Windows?

No registry hacking needed... From the output of 'start /?':

B Start application without creating a new window.

So all you have to do is pass system("start /b http:.....");


We're not surrounded, we're in a target-rich environment!

Replies are listed 'Best First'.
Re^2: How to start default browser on Windows?
by Thelonius (Priest) on Aug 11, 2005 at 17:12 UTC
    So all you have to do is pass system("start /b http:.....");
    If the perl process is not running in a console window, then this won't work. A console window will be opened to run the shell for system(). This is before the actual command is parsed.

    A perl process can be started without a console window (on MSWindows), by, for example, double-clicking a .WPL file.