- SEE ALSO
- AUTHOR, COPYRIGHT, and LICENSE
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.
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.