Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
runs another program with environment modified according to envfile
tree: de48cf2e1a

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bin
lib/App
t
xt
.gitignore
.shipit
Changes
MANIFEST.SKIP
Makefile.PL
README.pod

README.pod

NAME

App::envfile - runs another program with environment modified according to envfile

SYNOPSIS

  $ 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}"'

DESCRIPTION

App::envfile is sets environment from file.

envfile inspired djb's envdir program.

METHODS

new()

Create App::envfile instance.

  my $envf = App::envfile->new();
run($envfile, @commands)

Runs another program.

  my $exit_code = $envf->run($envfile, @commands);
load_envfile($envfile)

Sets %ENV from file.

  $envf->load_envfile($envfile);

Supported file format are:

  KEY=VALUE
  KEY2=VALUE
  ...
usage()

Show usage.

  $envf->usage();

AUTHOR

xaicron <xaicron@cpan.org>

COPYRIGHT

Copyright 2011 - xaicron

LICENSE

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

SEE ALSO

Something went wrong with that request. Please try again.