----- Original Message ----- From: "Tallapragada, Sridevi" <[EMAIL PROTECTED]>
> I have actually seen the Object oriented perl and modified it according > to my requirement. Does the cookbook example work ok for you ? One problem I find on Win32 is that strdup() can't be used (I get runtime segfaults). Instead I have to change the coookbook example code to: soldier->name = savepv(name); soldier->rank = savepv(rank); I think that most other operating systems, however, work quite happily with strdup(). I won't be able to look closely at your requests for a day (or two). (At which time I'll try to come up with some demo code that deals with nested structs.) Best bet is for you to start with the example in the cookbook, understand what is going on, and then gradually add complexity to it until it does what you want. Take it step by step - at each step check that you haven't broken something. If you have broken something, then first fix it before proceeding further. The functions used in the cookbook exampl;e should all be documented in 'perldoc perlapi' (I think :-) Cheers, Rob