Perl5 - Language for the 21st century

zhaozj2021-02-08  563

This is an online survey of the developer (http://soldc.sun.com) for the majority of developers. What languages ​​do you use to develop web-based client applications? Perl 62.1% JSP 12.5% ​​PHP 8.7% C, C 7.1% ASP 5.7% Other 3.7% Perl programming language Designer Larry Wall calls Perl to postmone, its purpose is not to launch a new trend, but Set the advantages of various languages ​​to solve practical problems. Perl powerful features, concise to a very syntax, making it particularly popular with the majority of programmers and becomes a very popular tool. Use perL developed by Millions, the PerL library function of the public code overwrite the various fields of the computer, becoming a resource that cannot be comparable in other languages, which can be found at www.cpan.org. From the language function and performance, Perl is not inferior to any kind of modern language, mainly in all aspects of the following aspects. 1. The fast development process Perl program is a text file, although there is actually a compilation process at runtime, but this process is invisible. For programmers, it is completely like an interpretative language that can be tested. 2. Extremely portable Perl is attributed to its inherent function. Perl has been compatible on almost all platforms. This means a Perl program, as long as there is no call to the operating system, you can not be modified on any platform. Perl even unified directory separators, even in Windows systems, you can use / as directory separation. Such portability is other languages, including Java unmatched. 3, very rich language function and text processing capability Perl has a lot of functional and extremely simple operators and inherent functions. Especially in text processing and regular expressions, many operations in other languages ​​are extremely simple, such as with regular expression decomposition, replace, matching strings, etc. Perl's advantage in this area has been borrowed by other languages ​​such as JavaScript, but due to lack of Perl flexible syntax, the use of regular expressions in JavaScript is still a lot of trouble. The Perl language itself supports arrays and corresponding arrays, which makes programmers to easily use complex data structures to efficiently solve various problems with complex algorithms. The same problem, even if the STL of C is also difficult to have a few times. Perl can also handle text, but also handle binary data and C data structure. 4, superb performance Perl runs greatly than general explanatory languages. Compared to Java, Perl is about a quantitude. This is because Perl is actually a compilation language, and the Perl script is compiled, optimized, converted into an operator tree before running, and directly calls the various internal functions implemented by the C language. Java explains Bytecode on a virtual machine. If there is a need, Perl can be compiled into C code, then generate executables, so that the compilation process required for each runtime will be omitted, and the start speed is improved. 5. Powerful support for OOP Perl supports almost all object-oriented programming methods, such as classes, inheritance, multi-inheritance, virtual functions, runtime type determination, and more. Moreover, Perl has a dynamic call function that cannot be multi-language. Currently, almost all PerL library functions are OOP, written into a module. 6, the interface with C / C is very convenient in Perl. Many library functions are written in C / C , so Perl has very smart and fully functional C / C development interface tools. People can easily use the C / C code through the dynamic link library for the Perl program.

转载请注明原文地址:https://www.9cbs.com/read-234.html

New Post(0)