【Amon2のオレオレTips】Configのカスタマイズ したい
http://hirobanex.net/article/2012/12/1356958247
そもそもプラグインのやつ使わずにConfig::ENV使ってる。
package MyApp::Config; use strict; use warnings; use Config::ENV 'PLACK_ENV', export => 'config'; common load('config/common.pl'); config development => load('config/development.pl'); package MyApp; use strict; use warnings; use utf8; use parent qw/Amon2/; our $VERSION='0.01'; use 5.008001; use MyApp::Config; sub config { MyApp::Config->current }