Env::Browser - Process environment variable $BROWSER and run web browser.
use Env::Browser qw(run); run($uri);
Run browser defined by $BROWSER variable.
$BROWSER variable is defined by L<The BROWSER project|http://www.catb.org/~esr/BROWSER/index.html>.
# Pragmas. use strict; use warnings; # Modules. use Env::Browser qw(run); # Set $BROWSER variable. $ENV{'BROWSER'} = 'echo'; # Run. run('http://example.com'); # Output: # http://example.com
# Pragmas. use strict; use warnings; # Modules. use Env::Browser qw(run); # Set $BROWSER variable. $ENV{'BROWSER'} = 'echo %s'; # Run. run('http://example.com'); # Output: # http://example.com
# Pragmas. use strict; use warnings; # Modules. use Env::Browser qw(run); # Set $BROWSER variable. $ENV{'BROWSER'} = 'foo:echo %s:bar'; # Run. run('http://example.com'); # Output: # http://example.com
Readonly.
urlview.
https://github.com/tupinek/Env-Browser
Michal Špaček mailto:skim@cpan.org
http://skim.cz
BSD license.
0.03
To install Env::Browser, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Env::Browser
CPAN shell
perl -MCPAN -e shell install Env::Browser
For more information on module installation, please visit the detailed CPAN module installation guide.