Win32::WebBrowser - open the default web browser on Win32
use Win32::WebBrowser; open_browser('file://D:\\some\\directory\\myfile.html');
In a separate detached process, opens the default web browser instance for the specified URL. The browser executable is determined by reading the registry.
Only a single exported method is provided:
Create a separate detached process to run the default browser for the platform (as specified in the registry) and supply the given $url to it. Returns 1 on success, undef with the error message in $@ on failure.
$url
$@
HTML::Display provides similar functionality for multiple OSes/platforms, but does not currently (as of version 0.39) provide a working Windows solution.
Copyright(C) 2007, Dean Arnold, Presicient Corp., USA. All rights reserved.
Permission is granted to use this software under the same terms as Perl itself. Refer to the Perl Artistic license for details.
To install Win32::WebBrowser, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Win32::WebBrowser
CPAN shell
perl -MCPAN -e shell install Win32::WebBrowser
For more information on module installation, please visit the detailed CPAN module installation guide.