Config-Micro

 view release on metacpan or  search on metacpan

t/TestApp/lib/TestApp.pm  view on Meta::CPAN

package TestApp;
use strict;
use warnings;
use Config::Micro;

sub new {
    my ($class, %opts) = @_;
    my $conf_file = Config::Micro->file(%opts);
    my $conf = require "$conf_file";
    return bless +{ config => $conf }, $class;
}

sub foo {
    my $self = shift;
    return $self->{config}{env};
}

1;



( run in 2.943 seconds using v1.01-cache-2.11-cpan-437f7b0c052 )