Learning Perl, Fourth Edition by Randal L. Schwartz, Tom Phoenix, brian d foy

By Randal L. Schwartz, Tom Phoenix, brian d foy

Studying Perl, greater referred to as "the Llama book", starts off the programmer for you to mastery. Written by means of 3 favourite individuals of the Perl group who each one have a number of years of expertise instructing Perl worldwide, this most modern version has been up to date to account for the entire fresh alterations to the language as much as Perl 5.8.Perl is the language for those that are looking to get paintings performed. It all started as a device for UNIX approach directors who wanted anything robust for small projects. considering that then, Perl has blossomed right into a full-featured programming language used for net programming, database manipulation, XML processing, and approach management - on virtually all systems - whereas last the favourite software for the small day-by-day initiatives it was once designed for. you could begin utilizing Perl since you desire it, yet you will proceed to exploit it since you love it.Informed through their years of good fortune at instructing Perl as experts, the authors have re-engineered the Llama to raised fit the velocity and scope acceptable for readers getting begun with Perl, whereas preserving the unique dialogue, thorough examples, and eclectic wit for which the Llama is famous.The ebook comprises new routines and options so that you can perform what you might have realized whereas it is nonetheless clean on your brain. listed here are just a few of the themes covered:data structuresminimal matchingthreadingdata parsingreferencesobjectsmodulespackage implementationIf you ask Perl programmers this day what ebook they trusted such a lot once they have been studying Perl, you can find that an overpowering majority will element to the Llama. With sturdy cause. different books could educate you to application in Perl, yet this ebook will flip you right into a Perl programmer.

Show description

Read or Download Learning Perl, Fourth Edition PDF

Similar ai & machine learning books

Artificial Intelligence Through Prolog

Man made Intelligence via Prolog ebook

Language, Cohesion and Form (Studies in Natural Language Processing)

As a pioneer in computational linguistics, operating within the earliest days of language processing via computing device, Margaret Masterman believed that which means, now not grammar, used to be the major to realizing languages, and that machines may verify the that means of sentences. This quantity brings jointly Masterman's groundbreaking papers for the 1st time, demonstrating the significance of her paintings within the philosophy of technology and the character of iconic languages.

Handbook of Natural Language Processing

This learn explores the layout and alertness of normal language text-based processing platforms, in response to generative linguistics, empirical copus research, and synthetic neural networks. It emphasizes the sensible instruments to deal with the chosen procedure

Extra resources for Learning Perl, Fourth Edition

Example text

If you had reversed the order of the operands, as 4 x 5, you would have made five copies of the string 4, yielding 44444. This shows that string repetition is not commutative. 8 becomes 4) before being used. A copy count of less than one results in an empty (zero-length) string. 4. Automatic Conversion Between Numbers and Strings For the most part, Perl automatically converts between numbers and strings as needed. How does it know whether a number or a string is needed? It all depends on the operator being used on the scalar value.

Most variable names in our Perl programs are all lowercase like most of the ones you'll see in this book. In a few special cases, uppercase letters are used. Using all caps (like $ARGV) generally indicates that there's something special about that variable. When a variable's name has more than one word, some say $underscores_are_cool while others say $giveMeInitialCaps. Just be consistent. Of course, choosing good or poor names makes no difference to Perl. You could name your program's three most important variables $OOO000OOO, $OO00OO00, and $O0O0O0O0O and Perl wouldn't be bothered; in that case, please, don't ask us to maintain your code.

In that case, you should skip the exercises that use perldoc. The output of that command in the backticks is saved in an array variable called @lines. The next line of code starts a loop that processes each one of those lines. Inside the loop, the statements are indented. Though Perl doesn't require this, good programmers do. The first line inside the loop body is the scariest one; it says s/\w<([^>]+)>/\U$1/g;. Without going into too much detail, we'll just say that this can change any line that has a special marker made with angle brackets (< >), and there should be at least one of those in the output of the perldoc command.

Download PDF sample

Rated 4.19 of 5 – based on 12 votes