WWWBrowser(3pm)
π WWWBrowser β the manual, but make it make sense π
okay so bestie, welcome to WWWBrowser β it's a Perl module (that's the 3pm part, periodt) that gives you a platform independent way to start a WWW browser. that's literally the whole job. it's giving "universal remote but for browsers" β¨
πΈ SYNOPSIS πΈ
use WWWBrowser;
WWWBrowser::start_browser($url, -oldwindow => 1);
likeβ¦ that's it. that's the whole vibe. load it, call it, browser go brrr π¦
β¨ DESCRIPTION β¨
π start_browser($url [, %args])
Start a web browser with the specified URL. and the important part β the process is started in background, so it does NOT sit there blocking you like an ex in your DMs. π
The following optional parameters are recognized:
-oldwindow => $boolβ Normally, the URL is loaded into a new window, if possible. But with-oldwindowset to a false value,WWWBrowserwill try to re-use a browser window instead. no new window, we're recycling, we're being sustainable π±-browser => $browserβ Use (preferably) the named browser$browser. Peep the CONFIGURATION section below for some browser specialities, because some browsers have β¨quirksβ¨. Heads up though: this option will only work for unix. not unix? no dice. π
π CONFIGURATION π
For unix, the global variable @WWWBrowser::unix_browsers can be set to a list of preferred web browsers. rank them. give them a tier list. go off. π
The following browsers are handled specially:
lynx,w3mβ Text oriented browsers, which are opened in anxterm,kvtorgnome-terminal(if running under X11). And if you're not running under X11? then no background process is started. full stop. π«Άkfmclientβ UseopenURLmethod of kfm.netscapeβ Use-remoteoption to re-use a running netscape process, if possible. iconic behavior honestly._default_gnomeβ Look into the~/.gnome/Gnomeconfiguration file for the right browser. it's giving detective work π_default_kdeβ NYI. that's "not yet implemented" bestie, don't come for me π
The following variables can be defined globally in the main package:
$osβ Short name of operating system (win,macorunix).&status_messagesβ Error handling function (instead of defaultwarn). so you can handle your errors your way, main character energy π
β REQUIREMENTS β
For Windows, the Win32Util module should be installed in the path. windows girlies, do not forget this one, fr fr. π
π AUTHOR π
Slaven Rezic <slaven@rezic.de>
π COPYRIGHT π
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.
π¦ SEE ALSO π¦
Win32Util.
no cap, that's genuinely the whole page. every flag, every variable, every quirk, all present and accounted for. π
and a lil sign-off for the road: this beauty is from perl v5.34.0, dated 2022-06-28, and it answers to the name WWWBrowser(3pm). mwah π
β¨
π¦ where this page comes from
- debian bookworm: libwwwbrowser-perl 2.23-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libwwwbrowser-perl 2.23-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libwwwbrowser-perl 2.23-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libwwwbrowser-perl 2.23-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libwwwbrowser-perl 2.23-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms