I used to kind of unfairly disparage perl, but now I regret never learning it. I've written a lot of scripts for munging text/files that outgrow bash, and when I rewrite in Python they get twice as long. Seems like perl would be a happy medium and let me keep using a lot of the nice bash shortcuts like `baskticks` for shell execution, etc
Yeah so many people shooting themselves in the foot by failing to take advantage of this powerful tool - as you say especially for stuff that you might have otherwise used an overly-complex bash script for.
Perl first commit: a “replacement” for Awk and sed
21–30 of 261 posts
Re: Perl first commit: a “replacement” for Awk and sed
#22The funny thing is Perl is now arguably more obsolete than sed and awk.
My first thought when I saw this was that I'd like to see some stats on use of the three. I personally use sed and awk regularly and never perl, but I have no idea what is typical. I have a feeling that most people (amongst those who may have a use case) don't use any of them.
Worth noting “sed” is “thirst” in Spanish, which has the potential to throw off the data, especially worldwide.
https://trends.google.com/trends/explore?date=all&geo=US&q=p...
Re: Perl first commit: a “replacement” for Awk and sed
#23I used to kind of unfairly disparage perl, but now I regret never learning it. I've written a lot of scripts for munging text/files that outgrow bash, and when I rewrite in Python they get twice as long. Seems like perl would be a happy medium and let me keep using a lot of the nice bash shortcuts like `baskticks` for shell execution, etc
Re: Perl first commit: a “replacement” for Awk and sed
#24I used to kind of unfairly disparage perl, but now I regret never learning it. I've written a lot of scripts for munging text/files that outgrow bash, and when I rewrite in Python they get twice as long. Seems like perl would be a happy medium and let me keep using a lot of the nice bash shortcuts like `baskticks` for shell execution, etc
Yeah so many people shooting themselves in the foot by failing to take advantage of this powerful tool - as you say especially for stuff that you might have otherwise used an overly-complex bash script for.
Edit: this applies to any language not just Perl. I use it to learn Python things I would otherwise miss.
Re: Perl first commit: a “replacement” for Awk and sed
#25When perl came out we were living in horrific times. You had the choice of either Bourne, C or Korn shell. Automation was glued together in one of these with a series of grep, awk, sed, ls, test, commands glued together. Anything more complicated was written in C and called from one of these things. Perl in one stroke collapsed the programming of C, text manipulation, the capabilities of all of the Unix utilities, an…
> Yes, awk and sed were replaced by Perl, I still use awk and sed semi regularly. I haven’t used Perl in over a decade.
Re: Perl first commit: a “replacement” for Awk and sed
#26The funny thing is Perl is now arguably more obsolete than sed and awk.
Re: Perl first commit: a “replacement” for Awk and sed
#27I used to kind of unfairly disparage perl, but now I regret never learning it. I've written a lot of scripts for munging text/files that outgrow bash, and when I rewrite in Python they get twice as long. Seems like perl would be a happy medium and let me keep using a lot of the nice bash shortcuts like `baskticks` for shell execution, etc
Yeah so many people shooting themselves in the foot by failing to take advantage of this powerful tool - as you say especially for stuff that you might have otherwise used an overly-complex bash script for.
Re: Perl first commit: a “replacement” for Awk and sed
#28The funny thing is Perl is now arguably more obsolete than sed and awk.
The problem with Perl is it was still tied to Unix culture to compete with Python and it’s strong library set, so it was pretty much fazed out as an awkward intermediary.
Re: Perl first commit: a “replacement” for Awk and sed
#29The funny thing is Perl is now arguably more obsolete than sed and awk.
Re: Perl first commit: a “replacement” for Awk and sed
#30The funny thing is Perl is now arguably more obsolete than sed and awk.