I am new to perl; have good background in C. I am trying to do nested structures. Here is what i am trying to do (in C)
struct child_t { char type[10]; }; struct parent_t { char type[10]; struct * child_t child; };
My try at perl:
Is this the perl way of doing structures?use Class::Struct; struct child_t => { type => '$', }; struct parent_t => { type => '$', children => '$', };
In reply to Nested Class::Struct by a.kumaresh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |