NAME
Env::Browser - Process environment variable $BROWSER and run web browser.
SYNOPSIS
use Env::Browser qw(run);run($uri);SUBROUTINES
ENVIRONMENT
$BROWSER variable is defined by L<The BROWSER project|http://www.catb.org/~esr/BROWSER/index.html>.EXAMPLE1
use strict;use warnings;use Env::Browser qw(run);# Set $BROWSER variable.$ENV{'BROWSER'} = 'echo';# Run.run('http://example.com');# Output:# http://example.comEXAMPLE2
use strict;use warnings;use Env::Browser qw(run);# Set $BROWSER variable.$ENV{'BROWSER'} = 'echo %s';# Run.run('http://example.com');# Output:# http://example.comEXAMPLE3
use strict;use warnings;use Env::Browser qw(run);# Set $BROWSER variable.$ENV{'BROWSER'} = 'foo:echo %s:bar';# Run.run('http://example.com');# Output:# http://example.comDEPENDENCIES
SEE ALSO
- urlview
URL extractor/launcher
REPOSITORY
https://github.com/michal-josef-spacek/Env-Browser
AUTHOR
Michal Josef Špačekmailto:skim@cpan.org
LICENSE AND COPYRIGHT
© 2013-2020 Michal Josef ŠpačekBSD 2-Clause LicenseVERSION
0.06
Module Install Instructions
To install Env::Browser, copy and paste the appropriate command in to your terminal.
cpanm Env::Browserperl -MCPAN -e shellinstall Env::BrowserFor more information on module installation, please visitthe detailed CPAN module installation guide.