This is the string from the file before modification:$VAR1 = ' "rpgoCPpref" => { "enabled" => "true", "honorold" => "true", "debug" => "false", "questsfull" => "false", "tooltipshtml" => "true", "lite" => "true", "scan" => { "inventory" => "true", "talents" => "true", "honor" => "true", "reputation" => "true", "spells" => "true", "pet" => "true", "equipment" => "true", "professions" => "true", "mail" => "true", "skills" => "true", "quests" => "true", "bank" => "true", }, "ver" => "10500", "reagenthtml" => "true", "talentsfull" => "true", } "myProfile" => { .... blah blah ..... }'
so now that I have this string How do I access it as a hash?rpgoCPpref = { ["enabled"] = true, ["honorold"] = true, ["debug"] = false, ["questsfull"] = false, ["tooltipshtml"] = true, ["lite"] = true, ["scan"] = { ["inventory"] = true, ["talents"] = true, ["honor"] = true, ["reputation"] = true, ["spells"] = true, ["pet"] = true, ["equipment"] = true, ["professions"] = true, ["mail"] = true, ["skills"] = true, ["quests"] = true, ["bank"] = true, }, ["ver"] = 10500, ["reagenthtml"] = true, ["talentsfull"] = true, } myProfile = { .... blah, blah ..... }
In reply to Help with making a string into a hash by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |