struct child_t { char type[10]; }; struct parent_t { char type[10]; struct * child_t child; }; #### use Class::Struct; struct child_t => { type => '$', }; struct parent_t => { type => '$', children => '$', };