Hi Tachyon
++++++++ :)
yes, an array is needed to store success output also.Oversight on my part.
Two things i learnt from your post
1 . Usage of next if rather than my ungainly if(pattern) && if(pattern)
2 . The use of Data::dumper to print what i understand to be a "home made" data structure.
Thanks for the tips
regards,
rajdeep.