Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
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 ..... }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Help with making a string into a hash
by liverpole (Monsignor) on Oct 24, 2006 at 13:39 UTC | |
by blazar (Canon) on Oct 24, 2006 at 14:04 UTC | |
by Anonymous Monk on Oct 24, 2006 at 14:25 UTC | |
by Anonymous Monk on Oct 24, 2006 at 17:07 UTC | |
|
Re: Help with making a string into a hash
by Fletch (Bishop) on Oct 24, 2006 at 14:27 UTC | |
by Anonymous Monk on Oct 24, 2006 at 21:50 UTC | |
|
Re: Help with making a string into a hash
by blazar (Canon) on Oct 24, 2006 at 14:00 UTC |