Teach Yourself Perl 5 in 21 Days by David Till

By David Till

Sams train your self Perl five in 21 Days is the right e-book for amateur and intermediate point clients who are looking to achieve an excellent knowing of this programming language. utilizing step by step tutorials, you will study every thing you must find out about this well known programming language. observe how one can control textual content, generate experiences, and practice approach initiatives. via sensible, hands-on directions, logically equipped classes, and priceless Q&A sections, you are going to grasp Perl features and ideas and be constructing strong courses very quickly. Plus, Do/Don't packing containers allow you to steer clear of power programming pitfalls, illustrations clarify constructs resembling associative arrays, and tables function convenient references.

  • No past programming adventure is required
  • Explores the outdated and new beneficial properties of Perl and Perl 5
  • Teaches web programming with Perl 5
  • CD-ROM contains all undertaking records built by way of the writer, plus Perl 4.0 and Perl 5.0 to get you programming on the net correct away

Show description

Read or Download Teach Yourself Perl 5 in 21 Days PDF

Similar unix books

Building a Virtual Private Network

What you are promoting needs to be attached to be able to compete within the international industry. staff want to know that their company's community is available at any time, from anywhere. A digital deepest community (VPN) accomplishes this by using distant connectivity applied sciences that mix latest inner networks with the web to safely converse details.

Mac OS X Leopard Phrasebook

Mac OS® X Leopard Phrasebook   Brian Tiemann   crucial Code and instructions   Mac OS X Leopard Phrasebook supplies the full command words you want to take complete good thing about the Leopard’s hidden and undocumented strength beneath the graphical consumer interface: time-saving ideas for successfully operating with records, folders, the Finder, highlight, textual content records, servers, disks, CDs/DVDs, permissions, printing, functions, Expos?

DNS & BIND Cookbook

The DNS & BIND Cookbook provides ideas to the various difficulties confronted via community directors liable for a reputation server. Following O'Reilly's well known problem-and-solution cookbook structure, this identify is an vital significant other to DNS & BIND, 4th version, the definitive advisor to the severe activity of brand server management.

Extra resources for Teach Yourself Perl 5 in 21 Days

Example text

2 are similar to lines you've seen before. Line 3 tells you to enter a number; line 4 assigns the line you've entered to the variable $number; and line 5 throws away the trailing newline character Lines 6-8 constitute the if statement itself. As you have seen, this statement evaluates the conditional expression consisting of the variable $number. If $number is not zero, the expression is true, and the call to print is executed. If $number is zero, the expression is false, and the call to print is skipped; the Perl interpreter thus jumps to line 9.

For more information on difficulties with floating-point numbers, refer to the discussion of round-off errors on Day 3, "Understanding Scalar Values. 1 calls a special library function, chop. This function assumes that a line of text is stored in the variable passed to it; chop's job is to delete the character at the right end of the line of text. 1 uses chop. The statement $originaldist = ; assigns a line of input from the standard input file to the variable $originaldist. When you type 10 and press Enter, the line of input assigned to $originaldist consists of three characters: the 1, the 0, and a newline character.

You learn more about character strings on Day 3; for now, all you need to know is that everything inside the " characters is treated as a single unit. Performing Arithmetic As you've seen, the assignment operator = takes the value to the right of the = sign and assigns it to the variable on the left of the =: $var = 42; Here, the value 42 is assigned to the scalar variable $var. In Perl, the assignment operator is just one of many operators that perform tasks, or operations. Each operation consists of the following components: ● The operator, such as the assignment operator (=) ● One or more operands, such as $var and 42 This might sound a little confusing, but it's really quite straightforward.

Download PDF sample

Rated 4.48 of 5 – based on 41 votes