One thing I forgot to mention earlier is that the Data which I posted is from an array & is not definite. I think there might be some changes need to be done then. Can u pl help me understand on how can I achieve this ?
Thanks pludi, it seems to be working... will I b able to use @array as a normal array for further processing ??
Just for my understanding can u explain me the use of Dumper which is being used in this code (m pretty new to perl).