Perl is the abbreviation of Practical Extraction and Report Language, which can be translated as "Practical Report Extraction Language".

Perl is a high-level, general-purpose, literal, dynamic programming language.

Perl was originally designed by Larry Wall and was published on December 18, 1987.

Perl borrows features from C, sed, awk, shell scripts, and many other programming languages.

The most important feature of Perl is that Perl integrates regular expression functions and the huge third-party code library CPAN.

Perl array syntax

Perl arrays are list variables that store scalar values. Variables can be of different types.

Array variables start with @. To access array elements, use the format $ + variable name + [index value] to read

Perl array example

#!/usr/bin/perl
 @hits = (25, 30, 40);             
@names = ("google", "runoob", "taobao"); 
print "\$hits[0] = $hits[0]\n";
print "\$hits[1] = $hits[1]\n";
print "\$hits[2] = $hits[2]\n";
print "\$names[0] = $names[0]\n";
print "\$names[1] = $names[1]\n";
print "\$names[2] = $names[2]\n";