Perl - The other P on LAMP
Perl has become a popular all-purpose programming language because of its power and ease of use. Once you have mastered the language rules, you can do a lot with a little. One of the mottoes of Perl is Perl Makes Easy Tasks Easy and Hard Tasks Possible. Another is There's More Than One Way To Do It—TMTOWTDI, pronounced "Tim-Toe-Di."
Perl originated as a text processing language. Larry Wall, the creator, needed a language to manage and manipulate a database of text files. He designed Perl to be a language with built-in text processing by incorporating regular expressions and providing a number of text processing functions. There are and have been many other text processing languages: REXX, awk, sed, etc. But Perl has struck a chord, and not only with Open Source developers — it has been ported to all major operating systems and many minor ones. It has been (lovingly) referred to as the duct tape that holds the Internet together. One of the happy results of the spread of Perl is its portability; if created properly, Perl scripts will run on many operating systems with only minor changes, if any.
As it evolved, Perl grew (some would say mutated) from a text processing language into a powerful, multipurpose object-oriented programming language used to solve all kinds of real-world problems: system administration, network programming, database management, and CGI programming.
Perl's syntax is C-like. Its operators, constructs, and lexical conventions are similar to those of C. However, some of the language rules, especially regular expressions, can be a bit overwhelming at first. It's common for eyes to cross a bit when looking at one of the ubiquitous strings of punctuation representing a regular expression: /^ (?:To:)\s*(\S*)$/—not comic strip expletives, but the coin of the Perl realm. However, by concentrating on the basic rules, you can quickly learn to use the language to solve real problems—this is the beauty of the language. Of course, then you are suckered in and have become yet another Perl acolyte.
|