in reply to question:File to hash using map

You could also do this.. Your text.conf:
--- A: - B - C D: - E - F G: - H - I
And in your readin.pl:
#!/usr/bin/perl -w use YAML; use Smart::Comments '###'; my $data = YAML::LoadFile('text.conf'); ### $data
Your output:
### $data: { ### A => [ ### 'B', ### 'C' ### ], ### D => [ ### 'E', ### 'F' ### ], ### G => [ ### 'H', ### 'I' ### ] ### }

YAML rocks