open(F,"conf.ini"); my %config = {}' while() { (my $key,$value) = split /=/; $config{"$key"} = $value; } close(F);