Platform independent means to start a www browser
use WWWBrowser; WWWBrowser::start_browser($url, -oldwindow => 1);
Start a web browser with the specified \s-1URL\s0. The process is started in background.
The following optional parameters are recognized: Normally, the \s-1URL\s0 is loaded into a new window, if possible. With \*(C`-oldwindow\*(C' set to a false window, \*(C`WWWBrowser\*(C' will try to re-use a browser window. Use (preferebly) the named browser $browser. See \*(L"\s-1CONFIGURATION\s0\*(R" for a some browser specialities. This option will only work for unix.
For unix, the global variable @WWWBrowser::unix_browsers can be set to a list of preferred web browsers. The following browsers are handled specially:
Text oriented browsers, which are opened in an \*(C`xterm\*(C', \*(C`kvt\*(C' or \*(C`gnome-terminal\*(C' (if running under X11). If not running under X11, then no background process is started.
Use \*(C`openURL\*(C' method of kfm.
Use \*(C`-remote\*(C' option to re-use a running netscape process, if possible.
Look into the \*(C`~/.gnome/Gnome\*(C' configuration file for the right browser.
\s-1NYI\s0.
The following variables can be defined globally in the main package: Short name of operating system (\*(C`win\*(C', \*(C`mac\*(C' or \*(C`unix\*(C'). Error handling function (instead of default \*(C`warn\*(C').
For Windows, the Win32Util module should be installed in the path.
Slaven Rezic <[email protected]>
Copyright (c) 1999,2000,2001,2003 Slaven Rezic. All rights reserved. This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Win32Util.