my %param; dbmopen(%param, $config_file, 0666); # now populate the %param hash $param{key1} = "value1"; # or whatever makes sense dbmclose(%param);