Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^2: Need advice in for perl use as awk replacement

by eyepopslikeamosquito (Archbishop)
on Sep 23, 2020 at 20:12 UTC ( [id://11122131]=note: print w/replies, xml ) Need Help??


in reply to Re: Need advice in for perl use as awk replacement
in thread Need advice in for perl use as awk replacement

This is an example where you should rewrite the entire shell script in Perl.
Agreed. After being scarred by having to maintain an ugly 5000-line shell script (that started life as a quick ten line script) I put forward a case that Perl should almost always be preferred to Unix shell: Unix shell versus Perl.

The key reason is that Perl can comfortably scale to much larger scripts than shell. And shell scripts have a way of growing ... and growing ... and growing ... until they become maintenance nightmares. But by then how do you justify a rewrite? The cost of rewriting, the opportunity cost of not working on something else, and the risk of breaking previously working code in the rewrite. So write it in Perl to begin with.

  • Comment on Re^2: Need advice in for perl use as awk replacement

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11122131]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (4)
As of 2024-04-25 07:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found