Win32::WebBrowser - open the default web browser on Win32


Win32-WebBrowser documentation  | view source Contained in the Win32-WebBrowser distribution.

Index


NAME

Top

Win32::WebBrowser - open the default web browser on Win32

SYNOPSIS

Top

	use Win32::WebBrowser;

	open_browser('file://D:\\some\\directory\\myfile.html');

DESCRIPTION

Top

In a separate detached process, opens the default web browser instance for the specified URL. The browser executable is determined by reading the registry.

METHODS

Top

Only a single exported method is provided:

$result = open_browser($url)

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.

SEE ALSO

Top

HTML::Display provides similar functionality for multiple OSes/platforms, but does not currently (as of version 0.39) provide a working Windows solution.

AUTHOR, COPYRIGHT, and LICENSE

Top


Win32-WebBrowser documentation  | view source Contained in the Win32-WebBrowser distribution.