A short summary:
Pear: A written comparative specification, a more popular set of toolbox codes abroad
pecl:php extension package, but not part of PHP basic extension scope
Perl: A scripting-level language earlier than PHP, and PHP draws on his regular expression section
Two, Pear, pecl are all PHP extension modules collection. Is the two ways to extend PHP:
A. One is to write functions and classes in pure PHP code.
Pear is such a project. Pear is the official open source class library for PHP (the abbreviation for PHP Extension and application repository). Pear is the meaning of pears in English. Pear the PHP program development process commonly used in the function of writing into a class library, covering the page surface, database access, file operations, data structure, caching operations, network protocols and many other aspects, users can be very convenient to use. It is a PHP extension and application of a code warehouse, in short, pear is the PHP cpan. Its homepage is pear.php.net.
B. Another is to use C or C + + to write external modules loaded into PHP.
Pecl (The PHP Extension Community Library) is doing this, PHP's standard extension, which complements the functionality needed in real-world development. All extensions need to be installed, appearing as DLLs under Windows, and compiled separately under Linux, in the form of C in accordance with the official PHP standard, although the source code is open but the average person cannot change the source code at will. Its homepage is pecl.php.net.
The most straightforward statement: Pear is the upper-level extension of PHP, PECL is the underlying extension of PHP.
Both of these methods actually provide ready-made functions or classes for a particular application, essentially the same.
Three, PEAR, pecl and Perl differences
Pear is an abbreviation for the PHP extension and application library (the PHP Extension and application Repository). It is a PHP extension and application of a code warehouse, in short, pear is the PHP cpan.
PECL (PHP Extension Community Library), an extension of PHP, provides a series of known extensions, written in other languages such as C + +, mostly in the form of DLLs (dynamic link libraries), which is faster than pear, but unlike pear , the PECL needs to be configured on the server and registered to the host.
The original designer of Perl (practical Extraction and report Language) was Larry Wall (Larry Wall), which he published on December 18, 1987. Perl borrows the features of C, sed, awk, shell scripting, and many other programming languages. One of the most important features is its ability to integrate regular expressions internally, as well as a huge third-party code base CPAN. In short, Perl is as powerful as C, as well as scripting language like awk and sed. Perl is commonly referred to as the "utility Report Extraction Language" (Practical Extraction and Language), you may also see "Perl", all the letters are lowercase. In general, "Perl", with uppercase P, refers to the language itself, while "Perl", the lowercase p, refers to the interpreter that runs the program.
http://www.bkjia.com/PHPjc/751509.html www.bkjia.com true http://www.bkjia.com/PHPjc/751509.html techarticle a short summary: Pear: A written comparison specification, foreign more popular Toolbox code set pecl:php extension package, but not the basic PHP extension of Perl: a kind of earlier than PHP appeared ...