Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

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?

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2020-09-20 04:08 GMT
Find Nodes?
    Voting Booth?
    If at first I donít succeed, I Ö

    Results (117 votes). Check out past polls.