If you plan to do anything in Perl, its necessary that you learn the syntax first. Once you know the basic syntax you can easily write your own scripts for your tasks. Get 'Learning Perl' by Randal Schwartz or type
Code:
$ perldoc perlintro
The above command will give you a brief perl tutorial. `man perl` for more details. There're many more books like 'Impatient Perl' (
Impatient Perl Official Home Page) which will get you started quickly if you know any another C-like programming language.