目录 Preface 1.mtroduaion Questions and Answers Is This the Right Book for You? What About the Exercises and Their Answers? What Iflm a Perl Course Instructor? What Does "Perl" Stand For? Why Did Larry Create Perl? Why Didnt Larry Just Use Some Other Language? Is Perl Easy or Hard? How Did Perl Get to Be So Popular? Whats Happening with Perl Now? Whats Perl Really Good For? What Is Perl Not Good For? How Can I Get Perl? What Is CPAN? Is There Any Kind of Support? What Ifl Find a Bug in Perl? How Do I Make a Perl Program? A Simple Program Whats Inside That Program? How Do I Compile My Perl Program? A Whirlwind Tour of Perl Exercises 2.Scalar Data Numbers All Numbers Have the Same Format Internally Integer Literals Nondecimal Integer Literals Floating—Point Literals Numeric Operators Strings Single—Quoted String Literals Double—Quoted String Literals String Operators Automatic Conversion Between Numbers and Strings Perls Built—In Warnings Interpreting Nondecimal Numerals Scalar Variables Choosing Good Variable Names Scalar Assignment Compound Assignment Operators Output with print Interpolation of Scalar Variables into Strings Creating Characters by Code Point Operator Precedence and Associativity Comparison Operators The if Control Structure Boolean Values Getting User Input The chomp Operator The while Control Structure The undef Value The defined Function Exercises 3.Lists and Arrays Accessing Elements of an Array Special Array Indices List Literals The qw Shortcut List Assignment The pop and push Operators The shift and unshift Operators The splice Operator Interpolating Arrays into Strings The foreach Control Structure Perls Favorite Default: $ The reverse Operator The sort Operator The each Operator Scalar and List Context Using List—Producing Expressions in Scalar Context Using Scalar—Producing Expressions in List Context Forcing Scalar Context <STDIN> in List Context Exercises 4.Subroutines Defining a Subroutine Invoking a Subroutine Return Values Arguments Private Variables in Subroutines Variable—Length Parameter Lists A Better &max Routine Empty Parameter Lists Notes on Lexical (my) Variables The use strict Pragma The feturn Operator Omitting the Ampersand Nonscalar Return Values Persistent, Private Variables Subroutine Signatures Exercises 5.Input and Output Input from Standard Input Input from the Diamond Operator The Double Diamond The Invocation Arguments Output to Standard Output Formatted Output with printf Arrays and printf Filehandles Opening a Filehandle Binmoding Filehandles Bad Filehandles Closing a Filehandle Fatal Errors with die Warning Messages with warn Automatically die—ing Using Filehandles Changing the Default Output Filehandle Reopening a Standard Filehandle Output with say Filehandles in a Scalar Exercises 6.Hashes What Is a Hash? Why Use a Hash? Hash Element Access The Hash as a Whole Hash Assignment The Big Arrow Hash Functions The keys and values Functions The each Function Typical Use of a Hash The exists Function The delete Function Hash Element Interpolation The %ENV hash Exercises 7.Regular Expressions Sequences Practice Some Patterns The Wildcard Quantiflers Grouping in Patterns Alternatives Character Classes Character Class Shortcuts Negating the Shortcuts Unicode Properties Anchors Word Anchors Exercises …… 8.Matching with Regular Expressions 9.Processing Text with Regular Expressions 10.MoreControIStructures 11.PerlModules 12.FileTests 13.DirectoryOperations 14.Strings and Sorting 15.ProcessManagement 16.Some Advanced PerlTechniques A.ExeraseAnswers B.Beyond the Llama C.A Unicode Primer D.Experimental Features Index
以下为对购买帮助不大的评价