Learning Perl

Learning Perl, popularly known as ""the Llama,"" is the book most programmers rely on to get started with Perl. The bestselling Perl tutorial since it was first published in 1993, this new fifth edition covers recent changes to the language up to Perl 5.10. This book reflects...

Descripción completa

Detalles Bibliográficos
Autor principal: Schwartz, Randal L. (-)
Otros Autores: Foy, Brian D., Phoenix, Tom
Formato: Libro electrónico
Idioma:Inglés
Publicado: Beijing ; Sebastopol : O'Reilly 2008.
Edición:5th ed
Materias:
Ver en Biblioteca Universitat Ramon Llull:https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009627469606719
Tabla de Contenidos:
  • Learning Perl; How to Contact Us; Using Code Examples; Safari® Enabled; History of This Book; Acknowledgments; 1. Introduction; Why Are There So Many Footnotes?; What About the Exercises and Their Answers?; What Do Those Numbers at the Start of the Exercise Mean?; What If I'm a Perl Course Instructor?; What Does "Perl" Stand For?; Why Didn't Larry Just Use Some Other Language?; Is Perl Easy or Hard?; How Did Perl Get to Be So Popular?; What's Happening with Perl Now?; What's Perl Really Good For?; What Is Perl Not Good For?; How Can I Get Perl?; How Can I Get Support for Perl?
  • Are There Any Other Kinds of Support?What If I Find a Bug in Perl?; How Do I Make a Perl Program?; What's Inside That Program?; How Do I Compile Perl?; A Whirlwind Tour of Perl; Exercises; 2. Scalar Data; Floating-Point Literals; Integer Literals; Nondecimal Integer Literals; Numeric Operators; Strings; Double-Quoted String Literals; String Operators; Automatic Conversion Between Numbers and Strings; Perl's Built-in Warnings; Scalar Variables; Scalar Assignment; Binary Assignment Operators; Output with print; Operator Precedence and Associativity; Comparison Operators
  • The if Control StructureGetting User Input; The chomp Operator; The while Control Structure; The undef Value; The defined Function; Exercises; 3. Lists and Arrays; Special Array Indices; List Literals; List Assignment; The shift and unshift Operators; Interpolating Arrays into Strings; The foreach Control Structure; The reverse Operator; The sort Operator; Scalar and List Context; Using Scalar-Producing Expressions in List Context; Forcing Scalar Context; in List Context; Exercises; 4. Subroutines; Invoking a Subroutine; Return Values; Arguments; Private Variables in Subroutines
  • Variable-Length Parameter ListsEmpty Parameter Lists; Notes on Lexical (my) Variables; The use strict Pragma; The return Operator; Nonscalar Return Values; Persistent, Private Variables; Exercises; 5. Input and Output; Input from the Diamond Operator; The Invocation Arguments; Output to Standard Output; Formatted Output with printf; Filehandles; Opening a Filehandle; Closing a Filehandle; Fatal Errors with die; Using Filehandles; Reopening a Standard Filehandle; Output with say; Exercises; 6. Hashes; Hash Element Access; Hash Assignment; The Big Arrow; Hash Functions; The each Function
  • Typical Use of a HashThe delete Function; Hash Element Interpolation; The %ENV hash; Exercises; 7. In the World of Regular Expressions; Using Simple Patterns; Simple Quantifiers; Grouping in Patterns; Alternatives; Character Classes; Negating the Shortcuts; Exercises; 8. Matching with Regular Expressions; Option Modifiers; Matching Any Character with /s; Adding Whitespace with /x; Combining Option Modifiers; Other Options; Anchors; The Binding Operator, =~; Interpolating into Patterns; The Match Variables; Noncapturing Parentheses; Named Captures; The Automatic Match Variables
  • General Quantifiers