in reply to Perl Windows Open a Web Browser
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Perl Windows Open a Web Browser
by SteveS832001 (Sexton) on Apr 09, 2007 at 20:21 UTC | |
by bart (Canon) on Apr 10, 2007 at 10:47 UTC |