"Singh, Ajit p" wrote: > Thanks Rob for your reply... > > My problem is :the values i pick up from is actually not a file.(Sorry about > that) > > The values are stored as an array of structs as key value pairs i.e > /thus/axioss/serviceID:123456 > /thus/axioss/supplierProduct:Test Stream 100 > /thus/axioss/web/installationTelephoneNumber:020837111663 > > I hope i am being clear now.
Not really. An array of structs has no meaning in Perl directly, AFAIK. Perl doesn't use structs. How are these values stored? How do you get them into Perl. Where do you get the values when you discuss them? Please, instead of describing this in terms of programming structures, tell us what you actually have to work with coming in, and what you hope to get out of it. What does each identifier mean, and where does the string come from? It could be that having a data file with these keys and values stored in it would be a good idea. But what are they? The coding part will probably come very simply if you can answer this question clearly. Using technical language incorrectly will not get you closer to your goal Keep it as simple as possible. Describe real-world situations in plain language first. This can then serve as a valuable guide to come back to when code and coding structures get mixed up. It's what we call the reality check or sanity test. Once your description makes sense in plain language, the coding part generally is relatively straightforward. I think your problem could be resolved quite simply, if you can refrain from injecting complication into it. Joseph -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>