The simplest way is to leave it all to Windows:
my $url = "http://localhost:8080/"; my $commandline = qq{start "$url" "$url"}; system($commandline) == 0 or die qq{Couldn't launch '$commandline': $!/$?};
Update: The start command was missing from the command line. Oops.
In reply to Re: Perl Windows Open a Web Browser
by Corion
in thread Perl Windows Open a Web Browser
by SteveS832001
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |