From Wikipedia, the free encyclopedia
Jump to navigation Jump to search
Paradigmmulti-paradigm: functional, imperative, object-oriented (class-based), reflective, procedural, Event-driven, generic
Designed byLarry Wall
DeveloperLarry Wall
First appeared1987
Stable release5.24.0[1] / May 9, 2016 (2016-05-09)
Preview release5.23.2[2] / August 20, 2015 (2015-08-20)
Implementation languageC
LicenseGNU General Public License or Artistic License[3]
Filename .pm .t .pod
Influenced by
AWK, Smalltalk 80, Lisp, C, C++, sed, Unix shell, Pascal
Python, PHP, Ruby, ECMAScript/Javascript, LPC, Windows PowerShell, Falcon, Perl 6, Qore, Julia

Perl is a programming language that was first made to change text files. The programming language has been changed many times to do things in addition to changing text files. Some of these things are tasks like making web pages show information in a better way than before, or take information and show it in a way that makes more sense to people. Sometimes Perl code is written using many symbols besides letters and numbers, which can make those programs hard to read.

A lot of web pages are written using Perl, but it can be used to do all kinds of things on computers. It is very good at searching through text looking for patterns, which lets people find words that they may be looking for, or also let people find words they are looking for, and change them with different words much more quickly than they would if they had to do it one word at a time.

Perl is also a high-level programming language. A high-level language has advanced features which let the programmer to tell the computer what to do without having to worry about how the computer is going to do that as much as low-level programming languages. This makes writing programs easier and faster.

Perl was invented by Larry Wall, and he is working on a new version of it.

Example[change | change source]

An example Hello World program in Perl:

print "Hello, world!\n";

You can use a variable .

Variable is a box where you can put items. In Perl, every variable starts with its own sigil. Sigil is the way to tell the Perl interpreter about what type of variable you are using. They can be scalar, array, hashmaps, typeglob, subroutine.

For example:

my $a_scalar = 2;
my $b = 5.29 ;
my $c = "a string";
my $d = 'another';
my @e = ($b,3,4,$c,$d);
my %f = ('a'=>$b,'cad'=>'pqr',$c=>$d);

References[change | change source]

  1. "Perl 5.24.0 is now available!". Retrieved 2016-05-25.
  2. "perl-5.23.2 is now available". Retrieved 2015-09-30.
  3. "Perl Licensing". Retrieved 2011-01-08.

Other websites[change | change source]