use Conf; #### # change my $one = $conf->{'db_database'}; # to my $conf = new Conf; my $one = $conf->db_database;