Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: sed/awk/grep to Perl

by jszinger (Scribe)
on Nov 09, 2020 at 22:13 UTC ( [id://11123544]=note: print w/replies, xml ) Need Help??


in reply to sed/awk/grep to Perl

In my experience the use of backticks or system to do what Perl can do indicates a lack of quality—there are often problems lurking in the rest of the code since the original programmer didn’t know Perl very well. Here be dragons. If you look at it funny, it might break.

I stopped writng awk scripts the day I learned Perl. There’s nothing that awk can do that cannot be easily done in Perl. I find grep handy from the command line and do simple sed calls from shell scripts and Makefiles. I am never tempted, however, to call them from Perl.

For added fun, consider that different implementations of awk, grep, and sed have incompatible feature sets and regular expression syntax.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11123544]
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: (2)
As of 2025-12-06 09:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your view on AI coding assistants?





    Results (85 votes). Check out past polls.

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.