in reply to Re^3: HELP TO WRITE THE PERL CODE
in thread help to write perl code

Naturally there is. The basics are covered in perlintro which also contains links to yet more extensive documentation.