ambidexter has asked for the wisdom of the Perl Monks concerning the following question:
sub open_default_browser { my $url = shift; my $platform = $^O; my $cmd; if ($platform eq 'MSWin32') { $cmd = "start $url"; } # W +in95..Win7 if (defined $cmd) { system($cmd); } else { die "Can't locate default browser"; } } open_default_browser("http://www.gmail.com/");
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Perl script to change the proxy settings of Google chrome
by dasgar (Priest) on Jun 27, 2013 at 08:12 UTC | |
by ambidexter (Initiate) on Jun 28, 2013 at 05:13 UTC | |
Re: Perl script to change the proxy settings of Google chrome (API)
by Anonymous Monk on Jun 27, 2013 at 07:36 UTC | |
by rovf (Priest) on Jun 27, 2013 at 08:07 UTC |