Vintage Unix terminal beside continuous-feed paper, illustrating early Perl text processing

Larry Wall and Perl: A Language for Automating Text Work

Sticker 014 · Back to Larry Wall’s sticker · Leggi la versione italiana

Imagine reading thousands of log lines, extracting the dates of certain errors and producing a summary. By hand it is slow, repetitive work. Perl, the language created by Larry Wall, lets you describe in a script which lines to look for, which values to keep and how to count the events. Perl 1.000 appeared on 18 December 1987. It made this kind of automation more practical for people working with systems and documents. Official Perl release history.

Larry Wall and Unix automation

Unix users could already combine programs such as sed, which edits streams of text, and awk, which looks for patterns and processes matching lines. Perl brought similar tasks into the same language you could use to organise data, write functions and manage files. That helped when a small task such as filtering a log grew into a job that needed checks, counts and a final report. About the Perl project.

What regular expressions do

A regular expression describes a pattern to find within text. It might look for a date made up of four digits, a hyphen, two digits, another hyphen and two more digits. You could keep just the year and use it to group the matching records. Perl puts the pattern and the decisions about what to do with its results in the same script. When log files come from several programs, it helps to check the formats they actually produce before relying on a pattern. Official Perl regular-expression tutorial.

An original excerpt from Perl 5.000

Perl 5.000 arrived in October 1994. Modules made it practical to share useful functions among programs and bring them into the places that needed them. The excerpt below reproduces import from lib/Exporter.pm in the historical revision recorded under Larry Wall’s name. caller identifies the calling context, shift takes the module name from the arguments, and the last line passes the module, the destination and the requested names to export. Historical Exporter.pm source · Perl 5.000 revision · Exporter documentation.

sub import {
    local ($callpack, $callfile, $callline) = caller($ExportLevel);
    my $pack = shift;
    export $pack, $callpack, @_;
}

The release README offers a choice between GNU GPL version 1 or later and the Artistic License included in the package. The excerpt is reproduced here under that historical Artistic License with the copyright and warranty notices. Perl 5.000 README · Full Artistic License from the release.

Historical copyright and warranty notice
Copyright (c) 1989,1990,1991,1992,1993,1994  Larry Wall
			    All rights reserved.

This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See either
    the GNU General Public License or the Artistic License for more details.

From modules to CPAN and the Perl community

The Comprehensive Perl Archive Network, online since October 1995, gave Perl users a place to publish and find modules. If someone has already written a module to read a particular data format, others can reuse or improve it. Authors, maintainers, testers and documentation contributors have built on Wall’s original work. Raku, previously known as Perl 6, is now a separate language in the same family, with its own development team. The CPAN archive · The Perl project on Perl and Raku · The Raku project.

Featured image. Original AI-generated editorial illustration for this sticker.

Nominate a programmer for the album

Who has made an outstanding contribution to software? We welcome nominations for well-known and lesser-known programmers. Give us a name, a specific project or contribution and sources we can check. An email address is optional and helps if we need clarification. The editors review each nomination before deciding whether to publish it.

← Back

Thank you for your response. ✨







Posted

in

by

Tags:

Article read 0 times. Thanks for watching

Condividi questa pagina

Impronta carbonica: stima non disponibile.

Stima indicativa del solo trasferimento osservabile: 0,81 kWh/GB × 442 g CO₂e/kWh (ipotesi illustrative, non misura certificata). Cache e risorse non osservabili possono ridurre il dato. GestioneSocial.top
Il nostro impegno per un web responsabile

Crediamo in un web più leggero, accessibile e sostenibile. Progettiamo le nostre pagine cercando di ridurre il trasferimento di dati, il consumo energetico e l’utilizzo non necessario delle risorse informatiche. Una pagina leggera facilita la navigazione anche da dispositivi meno recenti e connessioni lente, e può contribuire a contenere l’impatto ambientale delle attività digitali. La stima visualizzata non è una certificazione ambientale.

Un progetto di GestioneSocial.top per un web più responsabile.