Beginning Perl by James Lee

By James Lee

Originally created as a robust textual content processing instrument, Perl has seeing that advanced right into a multi-purpose, multi-platform language able to enforcing quite a few initiatives resembling method management, CGI and community programming, XML processing, and extra. Beginning Perl, moment Edition presents worthy perception into Perl's position in all of those initiatives and more.

Commencing with a finished review of language fundamentals, you are going to examine all approximately vital thoughts akin to Perl's information kinds and keep an eye on move constructs. This fabric units the level for a dialogue of extra complicated issues, akin to writing customized features, utilizing average expressions, and dossier enter and output. subsequent, we flow directly to the complicated issues of item orientated programming, modules, CGI programming, and database management with Perl's robust database interface module, DBI. The examples and code supplied provide you with all the details you must begin writing your individual robust scripts to unravel the issues indexed above, and plenty of more.

Whether you're a entire beginner or an skilled programmer, Beginning Perl, moment Edition deals a fantastic consultant to studying Perl.

Show description

Read Online or Download Beginning Perl PDF

Similar object-oriented design books

Pro PHP Patterns, Frameworks, Testing and More

Professional Hypertext Preprocessor offers skilled builders with a radical consultant to the language's key complicated positive factors, concentrating on either contemporary and rising positive aspects and improvement developments. complex object-oriented beneficial properties, documentation, debugging, software program styles, and the normal Hypertext Preprocessor Library are only some of the subject matters coated in broad element.

Objects, Components, Models and Patterns: 46th International Conference, TOOLS EUROPE 2008, Zurich, Switzerland, June 30-July 4, 2008, Proceedings (Lecture Notes in Business Information Processing)

This publication constitutes the completely refereed court cases of the forty sixth overseas convention on items, elements, versions and styles, instruments EUROPE 2008, held in Zurich, Switzerland, in June/July 2008. The 21 papers offered during this publication have been rigorously reviewed and chosen from fifty eight submissions.

Decline and Fall of the American Programmer

Ed Yourdon demonstrates how U. S. software program corporations can turn into world-class retailers in the event that they make the most the most important software program applied sciences of the Nineties. "View this booklet as a Tom Peters-style look for excellence within the software program international. Be ready to be angered. Be ready to be faced. Be ready to alter.

Additional resources for Beginning Perl

Example text

Look at them both in a row, when they are both off, the counter reads 00. Then one comes on, so we get 01. Then what? Well, humans get to 9 and have to carry 1 to the next column, but computers only get to 1. The next number, number 2, is represented as 10. Then 11. And we need some more of our circuit. Number 4 is 100, 5 is 101, and so ad infmiturn. If we got used to it, and we used the binary system naturally, we could count up to 1023 on our fingers. This may sound like an abnormal way to count, but even stranger counting mechanisms are all around us.

1 1 $ There's also a special operator that isn't really a Boolean comparison because it doesn't give us a true-or-false value; instead it returns 0 if the two are equal, -1 if the right-hand side is bigger, and 1 if the left-hand side is bigger-it is denoted by<=>. pl print "Compare six and nine? " 6 <=> 9, "\n"; print "Compare seven and seven? ", 7 <=> 7, "\n"; print "Compare eight and four? pl Compare six and nine? -1 Compare seven and seven? o Compare eight and four? 1 $ The<=> operator is also known as the spaceship operator or the shuttle operator due to its shape.

13 14 CHAPTER 2 SCALARS Numbers There are two types of number that we are interested in as Perl programmers: integers and floating point numbers. The latter we'll come to in a minute, but let's work a bit with integers right now. Integers are whole numbers with no numbers after the decimal point like 42, -1, or 10. The following program prints a couple of integer literals in Perl. pl 25-4$ Well, that's what you see, but it's not exactly what we want. Fortunately, this is pretty easy to fix. Firstly, we didn't tell Perl to separate the numbers with a space, and secondly, we didn't tell it to put a new line on the end.

Download PDF sample

Beginning Perl by James Lee
Rated 4.68 of 5 – based on 49 votes