in reply to Need a help for perl coding

Please use <p> </p> tags around your paragraphs. (and <code> </code> tags around your code). (See Writeup Formatting Tips)

Posting minimal sample data would also encourage monks to demonstrate how to parse it.

        What is the sound of Perl? Is it not the sound of a wall that people have stopped banging their heads against?
              -Larry Wall, 1992