Config::ENV::Multi - Config::ENV supported Multi ENV
package Config; use Config::ENV::Multi [qw/ENV REGION/], any => ':any:', unset => ':unset:'; common { # alias of [qw/:any: :any:/] # alias of [any, any] cnf => 'my.cnf', }; config [qw/dev :any:/] => sub { debug => 1, db => 'localhost', }; config [qw/prod jp/] => sub { db => 'jp.localhost', }; config [qw/prod us/] => sub { db => 'us.localhost', }; Config->current; # $ENV{ENV}=dev, $ENV{REGION}=jp # { # cnf => 'my.cnf', # debug => 1, # db => 'localhost', # }
supported multi environment Config::ENV.
Config::ENV
Copyright (C) Hiroyoshi Houchi.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Hiroyoshi Houchi <git@hixi-hyi.com>
To install Config::ENV::Multi, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Config::ENV::Multi
CPAN shell
perl -MCPAN -e shell install Config::ENV::Multi
For more information on module installation, please visit the detailed CPAN module installation guide.