Perl is known for its text manipulation capabilities. When shell scripts are compared to perl scripts for text manipulation, perl script has certainly an edge over shell scripts.
I ported a shell script to perl script as the shell script was taking too long a time to complete the task. The functionality of shell script was to remove certain statements from a file based on the input condition provided. I implemented the same functionality in perl and it was very very quick. So perl scripts when compared to shell scripts has two significant advantages
1. Performance vise it’s very very very fast
2. perl script can be used in windows and unix as compared to shell scripts which can executed only in unix enviornment.