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...
- Works on Windows
- Even on Unix the same shell command can behave very differently from system to system
- A debugger
- A wide selection of libraries
- Better structures such as object-oriented and functional programming
- Better ways to document with perldoc
- Better testing facilities such as Test::More and 700+ other test libraries
- Better packaging of projects for distribution
Most dynamic languages (Perl, Python, Ruby...) share these advantages.