emacs/var/elfeed/db/data/51/511a7b48ad29aef092787e11df86ab964a7fc25a
2022-01-03 12:49:32 -06:00

41 lines
3 KiB
Plaintext
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<p>On Dec 18th, 2021, Perl turned 34!<sup id="fnref:1"><a class="footnote" href="https://batsov.com/articles/2021/12/19/perl-turns-34/#fn:1" rel="footnote">1</a></sup> Heres how it all started:</p>
<blockquote>
<p><strong>a “replacement” for awk and sed</strong></p>
<p>[ Perl is kind of designed to make awk and sed semi-obsolete. This posting
will include the first 10 patches after the main source. The following
description is lifted from Larrys manpage. r$ ]</p>
<p>Perl is a interpreted language optimized for scanning arbitrary text
files, extracting information from those text files, and printing
reports based on that information. Its also a good language for many
system management tasks. The language is intended to be practical
(easy to use, efficient, complete) rather than beautiful (tiny,
elegant, minimal). It combines (in the authors opinion, anyway) some
of the best features of C, sed, awk, and sh, so people familiar with
those languages should have little difficulty with it. (Language
historians will also note some vestiges of csh, Pascal, and even
BASIC-PLUS.) Expression syntax corresponds quite closely to C
expression syntax. If you have a problem that would ordinarily use sed
or awk or sh, but it exceeds their capabilities or must run a little
faster, and you dont want to write the silly thing in C, then perl may
be for you. There are also translators to turn your sed and awk
scripts into perl scripts.</p>
</blockquote>
<p>Perl has a very special place in my heart, as it was one of the first programming languages that I learned in the early days of my career. In 2005 I was even teaching Perl to students at the Technical University of Sofia, which was my very first experience as an educator. Perl taught me a lot about the virtues of programming, text processing, regular expressions, scripting and writing unreadable code. I wouldnt be the same programmer (person?) without it!</p>
<p>I still remember fondly the days when web development was all about CGI and Perl!
While the language lost traction in recent years, I think that its legacy in alive and well - most notably as a replacement for <code class="language-plaintext highlighter-rouge">sed</code> and <code class="language-plaintext highlighter-rouge">awk</code>, and in Ruby.<sup id="fnref:2"><a class="footnote" href="https://batsov.com/articles/2021/12/19/perl-turns-34/#fn:2" rel="footnote">2</a></sup> Happy birthday, Perl!</p>
<div class="footnotes">
<ol>
<li id="fn:1">
<p>Depending on what you consider the birthday, that is. The first Perl commit was on Dec 18, 1987, but Perl 1.0 was released on Feb 1, 1988. <a class="reversefootnote" href="https://batsov.com/articles/2021/12/19/perl-turns-34/#fnref:1">↩</a></p>
</li>
<li id="fn:2">
<p>Not to mention the countless other programming languages that have modeled their regular expression support after Perl. <a class="reversefootnote" href="https://batsov.com/articles/2021/12/19/perl-turns-34/#fnref:2">↩</a></p>
</li>
</ol>
</div>