First a really quick Perl tutorial.
What is Perl?
Perl is a great language for almost anything. The syntax is consice and Perl makes simple things simple and makes hard things possible or so the motto goes.
Perl is one of the best languages there is for manipulating text and also makes an excellent glue language because Perl allows you to choose your quote opperater, supports here documents, and has built in regular expressions. Perl also has a bad reputation for looking like line noise for the same reasons listed above.