Benefits of Perl on shell scripting for processing text files


I'm setting up a test environment to test a program. This environment includes lots of text files that are given as input, and again the expected behaviour of the program is documented in another set of text files. I wanted to run the program with all the input files sequentially and compare the output generated with the reference files. Since i have a choice over languages that i can use(shell or perl), i wanted to know what are the advantages / strengths of perl language.

Perl has at least the following advantages over just about any shell...

Most dynamic languages (Perl, Python, Ruby...) share these advantages.