Config-App
view release on metacpan or search on metacpan
lib/Config/App.pm view on Meta::CPAN
sub new {
my ( $self, $location, $no_singleton ) = @_;
return $singleton if ( not $no_singleton and $singleton );
( my $box = ( POSIX::uname )[1] ) =~ s/\..*$//;
my $conf = {};
_process_location({
box => $box,
user => getpwuid($>) || POSIX::cuserid,
env => $ENV{CONFIGAPPENV},
conf => $conf,
optional => 0,
location => $location,
});
$self = bless( { _conf => $conf }, $self );
$singleton = $self unless $no_singleton;
if ( my $libs = $self->get('libs') ) {
( run in 0.464 second using v1.01-cache-2.11-cpan-8d75d55dd25 )