Perl script vs Shell script

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.

This entry was posted in General Tech Discussion. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s