ARGV-ENV
view release on metacpan or search on metacpan
lib/ARGV/ENV.pm view on Meta::CPAN
perl -MARGV::ENV=VAR1,VAR2,... -E "..." ...
From a script:
use ARG::ENV qw<VAR1 VAR2>;
...
=head1 DESCRIPTION
This module searches the first non-empty environment variable with one of the
names given at import time, parses it like the Unix shell (using
L<Text::ParseWords>::shellwords) and insert the result at the beginning of
C<@ARGV>.
This module is helpful to implement command-line scripts that take some
global config as an environnement variable containing command-line flags.
This module is named C<ARGV::ENV> (and not C<Argv::Env> or C<@ARGV::Env>)
because the perl built-in global variables C<@ARGV> and C<@ENV> are both in
upper case.
( run in 2.319 seconds using v1.01-cache-2.11-cpan-39bf76dae61 )