Quantcast
Channel: How do I launch the default web browser in Perl on any operating system? - Stack Overflow
Browsing latest articles
Browse All 4 View Live

Answer by mklement0 for How do I launch the default web browser in Perl on...

If installing CPAN module Browser::Open is not an option or not desired, Taras' answer provides a good alternative, but can be improved in the following ways:make the function work robustly on Windows...

View Article



Answer by Taras for How do I launch the default web browser in Perl on any...

You can use $^O variable to identify a platform and use different commands for each OS.For example:sub open_default_browser { my $url = shift; my $platform = $^O; my $cmd; if ($platform eq 'darwin') {...

View Article

Answer by cjm for How do I launch the default web browser in Perl on any...

The second hit on "open url" at search.cpan brings up Browser::Open:use Browser::Open qw( open_browser );my $url = 'http://www.google.com/';open_browser($url);If your OS isn't supported, send a patch...

View Article

How do I launch the default web browser in Perl on any operating system?

I want to open a URL, such as http://www.example.com/, at the end of a Perl script. I don't want to access it with WWW::Mechanize but actually show the web page to the user in a graphical web...

View Article
Browsing latest articles
Browse All 4 View Live




Latest Images