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 hash syntax
A hash is a collection of key/value pairs.
Hash variables in Perl begin with a percent sign (%).
Access hash element format: ${key}.
Perl hash example
#!/usr/bin/perl %data = ('google', 'google.com', 'php.cn', 'php.cn', 'taobao', 'taobao.com'); print "\$data{'google'} = $data{'google'}\n"; print "\$data{'php.cn'} = $data{'php.cn'}\n"; print "\$data{'taobao'} = $data{'taobao'}\n";