By Tom Christiansen, Nathan Torkington

ISBN-10: 059651686X

ISBN-13: 9780596516864

Discover a Perl programmer, and you'll discover a reproduction of Perl Cookbook within sight. Perl Cookbook is a complete choice of difficulties, strategies, and sensible examples for a person programming in Perl. The e-book comprises hundreds of thousands of carefully reviewed Perl "recipes" and hundreds of thousands of examples starting from short one-liners to accomplish applications.

The moment version of Perl Cookbook has been totally up-to-date for Perl 5.8, with broad adjustments for Unicode aid, I/O layers, mod_perl, and new applied sciences that experience emerged because the past version of the booklet. Recipes were up to date to incorporate the most recent modules. New recipes were additional to each bankruptcy of the booklet, and a few chapters have virtually doubled in size.

Covered subject components include:

Manipulating strings, numbers, dates, arrays, and hashes
Pattern matching and textual content substitutions
References, facts constructions, items, and classes
Signals and exceptions
Screen addressing, menus, and graphical applications
Managing different processes
Writing safe scripts
Client-server programming
Internet functions programming with mail, information, ftp, and telnet
CGI and mod_perl programming
Web programming

Since its first liberate in 1998, Perl Cookbook has earned its position within the libraries of significant Perl clients of all degrees of craftsmanship by way of offering functional solutions, code examples, and mini-tutorials addressing the demanding situations that programmers face. Now the second one version of this bestselling ebook is able to earn its position one of the ranks of favourite Perl books as well.

Whether you're a beginner or veteran Perl programmer, you'll locate Perl Cookbook , 2d version to be essentially the most worthy books on Perl on hand. Its cozy dialogue type and exact awareness to aspect disguise on the subject of any subject you'd need to know approximately. you will get via with no need this publication on your library, yet as soon as you've attempted some of the recipes, you won't are looking to.

Show description

Read Online or Download Perl Cookbook (2nd Edition) PDF

Best programming books

Learning to Program with MATLAB: Building GUI Tools - download pdf or read online

Author Craig Lent’s 1st version of studying to application with MATLAB: development GUI instruments teaches the middle options of desktop programming, akin to arrays, loops, functionality, simple information constructions, and so on. , utilizing MATLAB. The textual content has a spotlight at the basics of programming and builds as much as an emphasis on GUI instruments, protecting text-based courses first, then courses that produce photographs. This creates a visible expression of the underlying arithmetic of an issue or layout. short and to-the-point, the textual content contains fabric that may be switched over with supplementary reference fabric designed to attract clients to maintain their copy.

Read e-book online PHP Web Services: APIs for the Modern Web (2nd Edition) PDF

No matter if you're sharing facts among inner structures or development an API in order that clients can entry their facts, this sensible consultant has every little thing you must construct APIs with personal home page. writer Lorna Jane Mitchell presents plenty of hands-on code samples, real-world examples, and suggestion in response to her broad adventure to steer you thru the process—from the underlying thought to tools for making your provider powerful.

New PDF release: On Conceptual Modelling: Perspectives from Artificial

The transforming into call for for platforms of ever-increasing complexity and precision has prompted the necessity for greater point thoughts, instruments, and strategies in each quarter of desktop technological know-how. a few of these parts, particularly synthetic Intelligence, Databases, and Programming Lan­ guages, try to satisfy this call for through defining a brand new, extra summary point of approach description.

Additional info for Perl Cookbook (2nd Edition)

Example text

The environment variables PERLIO, PERL_ENCODING, and PERL_UNICODE all give Perl various sorts of hints related to these matters. 1 Accessing Substrings Problem You want to access or modify just a portion of a string, not the whole thing. For instance, you’ve read a fixed-width record and want to extract individual fields. Solution The substr function lets you read from and write to specific portions of the string. $value = substr($string, $offset, $count); $value = substr($string, $offset); substr($string, $offset, $count) = $newstring; substr($string, $offset, $count, $newstring); # same as previous substr($string, $offset) = $newtail; The unpack function gives only read access, but is faster when you have many substrings to extract.

So ||= is used to set a variable when that variable is itself still false. Since the || check is a simple Boolean one—testing for truth—it doesn’t care about undefined values, even when warnings are enabled. Establishing a Default Value This is the Title of the Book, eMatter Edition Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved. | 11 Here’s an example of ||= that sets $starting_point to "Greenwich" unless it is already set. Again, we assume $starting_point won’t have the value 0 or "0", or that if it does, it’s okay to change it.

Thank you all. xxxiv | Preface This is the Title of the Book, eMatter Edition Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved. Chapter 1 CHAPTER 1 Strings He multiplieth words without knowledge. 0 Introduction Many programming languages force you to work at an uncomfortably low level. You think in lines, but your language wants you to deal with pointers. You think in strings, but it wants you to deal with bytes. Such a language can drive you to distraction. Don’t despair; Perl isn’t a low-level language, so lines and strings are easy to handle.

Download PDF sample

Perl Cookbook (2nd Edition) by Tom Christiansen, Nathan Torkington

by William

Rated 4.32 of 5 – based on 40 votes