Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re: Comparison between Perl and Ksh

by traveler (Parson)
on Mar 06, 2002 at 20:43 UTC ( #149836=note: print w/replies, xml ) Need Help??

in reply to Comparison between Perl and Ksh

While it depends greatly on the task at hand, some reasons I have not used ksh or bash for development are (in no particular order):
  1. If you have a situation requiring lots of operations where the shell would fork a simple program (e.g. date, rm, ln) and where perl would do it directly, the fork overhead may be very high.
  2. Perl code can be easier to maintain. Some shell-only programmers may disagree, but I tend to forget why I did certian "tricks" in shell scripts. But I can generally figure out my old perl scripts.
  3. Perl has better support for functions.
  4. CPAN
  5. Perl expressions are generally easier to follow than calls to expr/sed/grep.
  6. It is probably easier to find new good Perl programmers to add to a team than to find new good ksh programmers.
I am in the process of converting most of my non-trivial shell scripts to perl. I recently tried to explain two large scripts, one perl one shell, to a group of inexperienced programmers. They could follow the perl, but not the shell, and the shell was much simpler code, honestly. The issue in that case was that the shell required verboseness and tricks that were not necessary in perl.

HTH, --traveler

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://149836]
Discipulus manual work: i just tell the same to my boss: every time the quick solution is to assign some manual data entry task to my group.. because we have not direct access to many databases here..
[LanX]: point is: in high speed trade each bank has to remember what he has to get from the others... so dresdner got billed for losses but couldn't claim gains
Discipulus is this the IT?
[Corion]: Discipulus: Well, in many cases it doesn't make sense to build an interface and complicated program just to enter 20 rows into a database ;) But yes, automating data imports should pay off in the long run
[LanX]: Choroba: this happened before I joined, was still in uni, but my boss was summoned to the CEO of the second biggest German bank at that time and could only say " I told them its not ready" ;)
[LanX]: memories....I missed my connection while chatting
[Discipulus]: in this case Corion we are speaking about software licensing: evry year or two we must rescan the whole ced to produce an excel report, while at every activation / disactivation we update a black box DB: i said that i a week i can produce the perl to..
[Discipulus]: rend out the xls IF i have access to the DB

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (9)
As of 2017-03-29 12:02 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (350 votes). Check out past polls.