perl script against shell script

Hi, just want to know what is the performance consideration for using perl script against shell script on AIX. I use the script for doing work with DB2. For example, query db2 tables and etc.  Is there any advantage using one over another?

Thank you.
tommym121Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

woolmilkporcCommented:
Hi,

in an environment which is not too much constrained in regard to memory or processor capacity, there should not be a big diffrerence.

perl needs a bit more memory, as the interpreter code must be loaded, and a bit more CPU, as the code gets precompiled before being executed.

perl has many more features than a normal shell, at the expense of higher complexity and learning effort, in my opinion.

wmp

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
TintinCommented:
If you are going to be doing a lot of string manipulation and/or matching, then Perl is going to be a lot quicker than a shell script.

However, if you are simply querying some tables, then there won't be that much difference between Perl and shell script.
ozoCommented:
If the shell ans perl scripts both call a separate program to do the DB2 operations, then there won't be much difference between them.
If the separate DB2 application needs to be called many times, it may be preferable to use
DBD::DB2 module to directly connect to the DB2 server from within the perl script.
tommym121Author Commented:
Thank you guys.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Shell Scripting

From novice to tech pro — start learning today.