Perl is as close to a Swiss Army knife of a scripting language as exists. If you can't write the code yourself, you can, in most circumstance, find a solution written for you on CPAN.
Having said that, at this stage, you probably need a beginning text on writing Perl. Something like
Learning Perl would be appropriate.