Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^2: RFC Using PERL HEREDOC script within bash

by RonW (Parson)
on Aug 27, 2014 at 16:20 UTC ( #1098770=note: print w/replies, xml ) Need Help??


in reply to Re: RFC Using PERL HEREDOC script within bash
in thread RFC Using PERL HEREDOC script within bash

Maybe when forced to incrementally "port" a legacy bash script to Perl. I have re-implemented some bash scripts in the past.

One legacy bash scripts that stands out in my memory, had several embedded AWK and Sed scripts. Management was very sceptical, so I had to do it incrementally. Phase 0, I replaced the AWK and Sed scripts with Perl equivalents. In some cases, I was able combine adjacent AWK/Sed scripts into a single Perl script. This was fortuitous because it gave a small but measurable performance boost. After demonstrating the new version worked correctly, I moved to phase 1 to re-implement the rest of the script, which was straight forward. The end result was much faster and much less fragile, therefor much easier to maintain and improve.

  • Comment on Re^2: RFC Using PERL HEREDOC script within bash

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (11)
As of 2019-12-06 07:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Strict and warnings: which comes first?



    Results (154 votes). Check out past polls.

    Notices?