http://qs321.pair.com?node_id=1048397


in reply to Re^2: grepping the location of a value from a datastructure
in thread grepping the location of a value from a datastructure

Then you should probably invert your data structure. Instead of

my $hash = { base => { key => 'value', key2 => 'value2'}};

consider

my $hash = { "value" => [ { 'chapter' => 2, 'paragraph' => 10 }, { 'chapter' => 2, 'paragraph' => 11 }, ... ], "value2" => [ { 'chapter' => 3, 'paragraph' => 1 } ] };
-derby