use strict; use Config::General; my $conf = new Config::General('bar.conf'); my %config = $conf->getall; use Data::Dumper; print Dumper \%config;