Perl
interpreted programming language first released in 1987
≈ 8 min read
Perl. encyclopegia.org, snapshot perl-005015-d753a73d5f823d41. /a/perl
Names in other languages
- 中文Perl编程语言
- taபெர்ள்
- বাংলাপার্ল
- العربيةبيرل
- ckbپێرڵ
- EnglishPerl
- guપર્લ
- СрпскиПерл
- 한국어펄
Article bodies are English and are not machine-translated. A name in another language is not a translation of the article.
Perlé ( ; ; ) is a small town in the commune of Rambrouch, in western Luxembourg. , the town has a population of 949. Perlé was a commune in the canton of Redange until 1 January 1979, when it was merged with the communes of Arsdorf, Bigonville, and Folschette to form the new commune of Rambrouch. The law creating Rambrouch was passed on 27 July 1978.
Perl is a high-level, general-purpose, interpreted, dynamic programming language. Though Perl is not officially an acronym, there are various backronyms in use, including "Practical Extraction and Reporting Language". Perl was developed by Larry Wall in 1987 as a general-purpose Unix scripting language to make report processing easier.
Since then, it has undergone many changes and revisions. Perl originally was not capitalized and the name was changed to being capitalized by the time Perl 4 was released. The latest release is Perl 5, first released in 19941.
From 2000 to October 2019 a sixth version of Perl was in development; the sixth version's name was changed to Raku. Both languages continue to be developed independently by different development teams which liberally borrow ideas from each other. Perl borrows features from other programming languages including C, sh, AWK, and sed.
It provides text processing facilities without the arbitrary data-length limits of many contemporary Unix command line tools. Perl is a highly expressive programming language: source code for a given algorithm can be short and highly compressible.
Perl gained widespread popularity in the mid-1990s as a CGI scripting language, in part due to its powerful regular expression and string parsing abilities. In addition to CGI, Perl 5 is used for system administration, network programming, finance, bioinformatics, and other applications, such as for graphical user interfaces (GUIs).
It has been nicknamed "the Swiss Army chainsaw of scripting languages" because of its flexibility and power. In 1998, it was also referred to as the "duct tape that holds the Internet together", in reference to both its ubiquitous use as a glue language and its perceived inelegance.
2000–2020
Perl 5.6 was released on March 22, 2000. Major changes included 64-bit support, Unicode string representation, support for files over 2 GiB, and the "our" keyword.
When developing Perl 5.6, the decision was made to switch the versioning scheme to one more similar to other open source projects; after 5.005_63, the next version became 5.5.640, with plans for development versions to have odd numbers and stable versions to have even numbers. In 2000, Wall put forth a call for suggestions for a new version of Perl from the community.
The process resulted in 361 RFC (Request for Comments) documents that were to be used in guiding development of Perl 6. In 2001, work began on the "Apocalypses" for Perl 6, a series of documents meant to summarize the change requests and present the design of the next generation of Perl. They were presented as a digest of the RFCs, rather than a formal document.
At this time, Perl 6 existed only as a description of a language. Perl 5.8 was first released on July 18, 2002, and further 5.X versions have been released approximately yearly since then. Perl 5.8 improved Unicode support, added a new I/O implementation, added a new thread implementation, improved numeric accuracy, and added several new modules.
As of 2013, this version was still the most popular Perl version and was used by Red Hat Linux 5, SUSE Linux 10, Solaris 10, HP-UX 11.31, and AIX 5. In 2004, work began on the "Synopses" – documents that originally summarized the Apocalypses, but which became the specification for the Perl 6 language.
In February 2005, Audrey Tang began work on Pugs, a Perl 6 interpreter written in Haskell. This was the first concerted effort toward making Perl 6 a reality. This effort stalled in 2006.
The Perl On New Internal Engine (PONIE) project existed from 2003 until 2006. It was to be a bridge between Perl 5 and 6, and an effort to rewrite the Perl 5 interpreter to run on the Perl 6 Parrot virtual machine. The goal was to ensure the future of the millions of lines of Perl 5 code at thousands of companies around the world.
The PONIE project ended in 2006 and is no longer being actively developed. Some of the improvements made to the Perl 5 interpreter as part of PONIE were folded into that project. On December 18, 2007, the 20th anniversary of Perl 1.0, Perl 5.10.0 was released.
Perl 5.10.0 included notable new features, which brought it closer to Perl 6. These included a switch statement (called "given"/"when"), regular expressions updates, and the smart match operator (~~). Around this same time, development began in earnest on another implementation of Perl 6 known as Rakudo Perl, developed in tandem with the Parrot virtual machine.
As of November 2009, Rakudo Perl has had regular monthly releases and now is the most complete implementation of Perl 6. A major change in the development process of Perl 5 occurred with Perl 5.11; the development community has switched to a monthly release cycle of development releases, with a yearly schedule of stable releases.
By that plan, bugfix point releases will follow the stable releases every three months. On April 12, 2010, Perl 5.12.0 was released. Notable core enhancements include new package NAME VERSION syntax, the yada yada operator (intended to mark placeholder code that is not yet implemented), implicit , full Y2038 compliance, regex conversion overloading, DTrace support, and Unicode 5.2.
On May 14, 2011, Perl 5.14 was released with JSON support built-in. On May 20, 2012, Perl 5.16 was released. Notable new features include the ability to specify a given version of Perl that one wishes to emulate, allowing users to upgrade their version of Perl, but still run old scripts that would normally be incompatible.
Perl 5.16 also updates the core to support Unicode 6.1. On May 18, 2013, Perl 5.18 was released. Notable new features include the new dtrace hooks, lexical subs, more CORE:: subs, overhaul of the hash for security reasons, support for Unicode 6.2.
On May 27, 2014, Perl 5.20 was released. Notable new features include subroutine signatures, hash slices/new slice syntax, postfix dereferencing (experimental), Unicode 6.3, and a function using a consistent random number generator. Some observers credit the release of Perl 5.10 with the start of the Modern Perl movement.
In particular, this phrase describes a style of development that embraces the use of the CPAN, takes advantage of recent developments in the language, and is rigorous about creating high quality code. While the book Modern Perl may be the most visible standard-bearer of this idea, other groups such as the Enlightened Perl Organization have taken up the cause.
In late 2012 and 2013, several projects for alternative implementations for Perl 5 started: Perl5 in Perl6 by the Rakudo Perl team, by Stevan Little and friends, by the Perl11 team under Reini Urban, by , and , a Kickstarter project led by Will Braswell and affiliated with the Perl11 project. print "Hello, World!\n"; Here is a more complex Perl program, that counts down seconds from a given starting value: !/usr/bin/env perl use strict; use warnings; my ( $remaining, $total ); $remaining=$total=shift(@ARGV); STDOUT->autoflush(1); while ( $remaining ) { printf ( "Remaining %s/%s \r", $remaining--, $total ); sleep 1; } print "\n"; To run the code above, store it in a file named counter.pl , and then execute it. $ perl counter.pl 42 The Perl interpreter can also be used for one-off scripts on the command line. The following example (as invoked from an sh-compatible shell, such as Bash) translates the string "Bob" in all files ending with .txt in the current directory to "Robert": $ perl -i.bak -lp -e 's/Bob/Robert/g' *.txt
See also
List of Perl programming books List of Perl software and tools Outline of Perl Perl Data Language Perl Object Environment Plain Old Documentation
Further reading
Learning Perl 6th Edition (2011), O'Reilly. Beginner-level introduction to Perl. Beginning Perl 1st Edition (2012), Wrox.
A beginner's tutorial for those new to programming or just new to Perl. Modern Perl 2nd Edition (2012), Onyx Neon. Describes Modern Perl programming techniques.
Programming Perl 4th Edition (2012), O'Reilly. The definitive Perl reference. Effective Perl Programming 2nd Edition (2010), Addison-Wesley.
Intermediate- to advanced-level guide to writing idiomatic Perl. Perl Cookbook, . Practical Perl programming examples.
Functional programming techniques in Perl.
Text derived from https://en.wikipedia.org/w/index.php?oldid=1373620166 under CC BY-SA 4.0; modifications have been made.
References
2 claims could not be tied to a specific sentence and are listed in the table below instead.
- ↩Wikipedia “Perl” release date (×1) · confidence 0.95 revision URL