Thanks for the link, but I have a more complex situation.
The above
Hashref is not static name. Here's a good example of what I need:
$self = {
A => {
B => 'C'
},
D => {
E => {
F => 'G'
}
}
}
So there are 2 hasrefs in example (in real code there will be more) inside the object. I need this methods to be generated:
- A - would get/set the whole 'A' hashref
- B - would get/set the 'B' key of the 'A' hashref
- D - would get/set the whole 'D' hashref
- E - would get/set the whole 'E' hashref
- F - would get/set the 'F' key of the 'E' hashref