in reply to Re: Generating accessors for complex structures inside the object
in thread Generating accessors and mutators for complex structures inside the object

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:
  • Comment on Re^2: Generating accessors for complex structures inside the object
  • Download Code

Replies are listed 'Best First'.
Re^3: Generating accessors for complex structures inside the object
by kyle (Abbot) on Jan 11, 2008 at 22:06 UTC

    What do you want to do if somewhere in your jungle of hashes you have two keys with the same name?

    $self = { A => { A => 'C' }, };

    Does the structure have cycles in it?

      All the keys have 100% guaranted unique names