GeekInterview.com
Series: Subject: Topic:
Question: 20 of 65

What are advantages of Perl over C, and of C over Perl ?

Asked by: sagarp1986 | Member Since Oct-2007 | Asked on: Oct 23rd, 2007

View all questions by sagarp1986

Showing Answers 1 - 1 of 1 Answers
sapam

Answered On : Mar 31st, 2008

View all questions by sapam   View all answers by sapam

Advantages of PERL over C1) Perl runs on all platforms and is far more portable than C.
2) Perl and a huge collection of Perl Modules are free software (either GNU General Public License or Artistic License).3) Perl is very much efficient in TEXT and STRING manipulation i.e. REG_EXP.4) It is a language that combines the best features from many other languages and is very easy to learn if you approach it properly.5) Dynamic memory allocation is very easy in PERL, at any point of time we can increase or decrease the size of the array.
Disadvantages of PERL over C1) You cannot easily create a binary image ("exe") from a Perl file. It's not a serious problem on Unix, but it might be a problem on Windows.
2) Moreover, if you write a script which uses modules from CPAN, and want to run it on another computer, you need to install all the modules on that other  computer, which can be a drag.3) Perl is an interpretative language, so its comparatively slower to other
compiling language like C. So, it s not feasible to use in Real time environment like in flight simulation system.

  
Login to rate this answer.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

Related Open Questions

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.