GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Operating System  >  Shell Scripting
Go To First  |  Previous Question  |  Next Question 
 Shell Scripting  |  Question 26 of 47    Print  
What is the basic difference u find between a shell script and perl.I mean the advantages of one over the other.

  
Total Answers and Comments: 2 Last Update: June 17, 2009     Asked by: O.Sajit 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
June 07, 2007 18:53:17   #1  
Sachin.K.P        

RE: What is the basic difference u find between a shel...

My ideas on the main differences are:


- Perl is complied at run time and runs faster as a result. Shell scripts are
translated line by line. This is much slower for many uses.

- Perl handles floating point and math stuff in general much more readily.

- Perl has a lot of built in stuff to handle arrays more easily and modules in
general are what Perl is about.

- Perl is platform neutral so most scripts should be slam dunks to move to
another platform or run on multiple platforms.

- Shell script for many tasks are probably faster to develop though.


These are just some of my ideas. Other people probably have more.


Cheers

Sachin.K.P


 
Is this answer useful? Yes | No
June 17, 2009 05:11:48   #2  
wow_suraj Member Since: May 2008   Contribution: 22    

RE: What is the basic difference u find between a shell script and perl.I mean the advantages of one over the other.
I believe most important difference will be platform dependency.

1) PERL scripts can be used on both UNIX and windows systems unless some OS specific commands are used. But the same case is not with Shell scripting.

2) PERL scripts are used for web based applications but shell scripts can not be used for the same purpose.

3) PERL modules gives PERL extra edge over Shell scripts. PERL modules are extensive and can be used for n number of purposes.

 
Is this answer useful? Yes | No

 Related Questions

Latest Answer : by using  :                 exec

Latest Answer : Broadly categorised in 3 for  while until ...

Latest Answer : global variable is created using export command in ksh - export x='name' In csh its created using setenv command-setenv x 'name'this 'x' variable will be visible in current shell as well as in child shell also.local variable ...

If you have a string "one two three", Which shell command would you use to extract the strings?

When you login to a c shell, which script would be run first? (before the terminal is ready for the user)

Latest Answer : cat test.txt | head -25 | tail -1 ...

Latest Answer : Program in execution is called ProcessThread is a flow of control in a program ...
Read Answers (7) | Asked by : Beena

Latest Answer : in shell we cannot edit the text whereas in the editor it is possible to edit the text ...
Read Answers (5) | Asked by : chitrabanu

Latest Answer : echo enter a string read stringlen=`expr length "$string"`i=$lenreverse=''while [ $i -gt 0 ]dochar=`echo $string | cut -c $i`reverse="$reverse$char"i=`expr $i - 1`doneecho string:$stringecho reverse:$reverseif [ $reverse = ...

Latest Answer : IF the Database is DB2 then the script is :db2 "connect to $dbname user $userid using $password" ...
Read Answers (7) | Asked by : Brahma Reddy Thatiparthi


 Sponsored Links

 
Related Articles

jQuery - Basic Alphabetical Sorting

Learning jQuery Basic Alphabetical Sorting Now let s perform a sort on the Title column of the table We ll need a class on the table header cell so that we can select it properly geshibot lang html" Title Author s Publish Date Price geshibot mosgoogle To perform the actual s
 

Working with XML in Perl

Working with XML in Perl Extensive Markup language or the XML is a sort of data storage; it is very structured and mapped out There are two most important aspects of XML that has to be covered one is writing in XML and reading it out in XML Parsers have already been created in XML and knowing how t
 

Working with XML in Visual Basic

Working with XML in Visual Basic Extensive markup language and Visual Basic is the odd couple of the industry Visual Basic is one of the most common languages that are being used today This Microsoft introduced language was meant to be middle tier in characteristic but has managed to get the top tie
 

How to call C header that is not provided generally by system in C++?

Headers can be called by using extern C Syntax of extern C is: extern "C" <function declaration> for example to call C functions from C++ we can write extern "C" { <function declaration> <function declaration> ...
 

What is difference between call by value and call by reference in function?

The arguments passed to function can be of two types 1. Values passed 2. Address passed The first type refers to call by value and the second type refers to call by reference. For instance consider program1 main() { int x=50, y=70; interchange(x,y); printf(“x=%d y=%d”,x,
 

SQL Perl/PL Overview

Procedural languages provide the fundamental method for programming within an SQL database. In other articles in this series, we have covered the SQL-based procedural languages, but those are generally not the only procedural languages found in an SQL database. Procedural extensions for Perl and Jav
 

System Implementation

In the previous articles relating to SDLC Stages we discussed about Project Planning and Feasibility Study moved on to System Analysis and Requirements which lead to Systems Design. Systems Design will naturally lead to another stage where it becomes closer to the actual deployment of the p
 

System Analysis and Requirements

In the previous chapter, we’ve discussed about project planning and feasibility study. That stage was important because it tries to establish a problem in our highly technological world. As our understanding on what we can do in computers evolve and so are the things that we need to make t
 

SDLC Model Basic Stages

SDLC or the Software Development Life Cycle refers to the steps involved in creating a software from scratch.  During earlier days, software used to be scarce and its creation was comparatively easier.  Developers could create any programs they want and experience no competition. I
 

The Interview Snafu

How to turn someone else’s mistake to your advantage Your dream job is about to become reality. A recruiter gave you the heads up about the perfect position at Humungous Conglomerate, Inc. You went through five interviews as well as a battery of psychological tests mandated by their HR de
 

About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape