| App::README |
App::envfile - runs another program with environment modified according to envfile
$ cat > foo.env FOO=bar HOGE=fuga $ envfile foo.env perl -le 'print "$ENV{FOO}, $ENV{HOGE}"' bar, fuga
like
$ env FOO=bar HOGE=fuga perl -le 'print "$ENV{FOO}, $ENV{HOGE}"'
App::envfile is sets environment from file.
envfile inspired djb's envdir program.
new()
Create App::envfile instance.
my $envf = App::envfile->new();
run_with_env(\%env, \@commands)
Runs another program with environment modified according to \%env.
$envf->run_with_env(\%env, \@commands);
parse_envfile($envfile)
Parse the envfile. Returned value is HASHREF.
my $env = $envf->parse_envfile($envfile);
Supported file format are:
KEY=VALUE # comment KEY2=VALUE ...
xaicron <xaicron@cpan.org>
Copyright 2011 - xaicron
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
| App::README |