
Intermediate Perl
Description
Alles über E-Books | Antworten auf Fragen rund um E-Books, Kopierschutz und Dateiformate finden Sie in unserem Info- & Hilfebereich.
More details
Other editions
Additional editions

Content
- Intro
- Table of Contents
- Foreword
- Preface
- Structure of This Book
- Conventions Used in This Book
- Using Code Examples
- Safari® Books Online
- How to Contact Us
- Acknowledgments
- Chapter 1. Introduction
- What Should You Know Already?
- strict and warnings
- Perl v5.14
- A Note on Versions
- What About All Those Footnotes?
- What's With the Exercises?
- How to Get Help
- What If I'm a Perl Course Instructor?
- Exercises
- Chapter 2. Using Modules
- The Standard Distribution
- Exploring CPAN
- Using Modules
- Functional Interfaces
- Selecting What to Import
- Object-Oriented Interfaces
- A More Typical Object-Oriented Module: Math::BigInt
- Fancier Output with Modules
- What's in Core?
- The Comprehensive Perl Archive Network
- Installing Modules from CPAN
- CPANminus
- Installing Modules Manually
- Setting the Path at the Right Time
- Setting the Path Outside the Program
- Extending @INC with PERL5LIB
- Extending @INC on the Command Line
- local::lib
- Exercises
- Chapter 3. Intermediate Foundations
- List Operators
- List Filtering with grep
- Transforming Lists with map
- Trapping Errors with eval
- Dynamic Code with eval
- The do Block
- Exercises
- Chapter 4. Introduction to References
- Doing the Same Task on Many Arrays
- PeGS: Perl Graphical Structures
- Taking a Reference to an Array
- Dereferencing the Array Reference
- Getting Our Braces Off
- Modifying the Array
- Nested Data Structures
- Simplifying Nested Element References with Arrows
- References to Hashes
- Checking Reference Types
- Exercises
- Chapter 5. References and Scoping
- More than One Reference to Data
- What If That Was the Name?
- Reference Counting and Nested Data Structures
- When Reference Counting Goes Bad
- Creating an Anonymous Array Directly
- Creating an Anonymous Hash
- Autovivification
- Autovivification and Hashes
- Exercises
- Chapter 6. Manipulating Complex Data Structures
- Using the Debugger to View Complex Data
- Viewing Complex Data with Data::Dumper
- Other Dumpers
- Marshalling Data
- Storing Complex Data with Storable
- YAML
- JSON
- Using the map and grep Operators
- Applying a Bit of Indirection
- Selecting and Altering Complex Data
- Exercises
- Chapter 7. Subroutine References
- Referencing a Named Subroutine
- Anonymous Subroutines
- Callbacks
- Closures
- Returning a Subroutine from a Subroutine
- Closure Variables as Inputs
- Closure Variables as Static Local Variables
- state Variables
- Finding Out Who We Are
- Enchanting Subroutines
- Dumping Closures
- Exercise
- Chapter 8. Filehandle References
- The Old Way
- The Improved Way
- Filehandles to Strings
- Processing Strings Line by Line
- Collections of Filehandles
- IO::Handle and Friends
- IO::File
- IO::Scalar
- IO::Tee
- IO::Pipe
- IO::Null and IO::Interactive
- Directory Handles
- Directory Handle References
- Exercises
- Chapter 9. Regular Expression References
- Before Regular Expression References
- Precompiled Patterns
- Regular Expression Options
- Applying Regex References
- Regexes as Scalars
- Build Up Regular Expressions
- Regex-Creating Modules
- Using Common Patterns
- Assembling Regular Expressions
- Exercises
- Chapter 10. Practical Reference Tricks
- Fancier Sorting
- Sorting with Indices
- Sorting Efficiently
- The Schwartzian Transform
- Multilevel Sort with the Schwartzian Transform
- Recursively Defined Data
- Building Recursively Defined Data
- Displaying Recursively Defined Data
- Avoiding Recursion
- The Breadth-First Solution
- Exercises
- Chapter 11. Building Larger Programs
- The Cure for the Common Code
- Inserting Code with eval
- Using do
- Using require
- The Problem of Namespace Collisions
- Packages as Namespace Separators
- Scope of a Package Directive
- Packages and Lexicals
- Package Blocks
- Exercises
- Chapter 12. Creating Your Own Perl Distribution
- Perl's Two Build Systems
- Inside Makefile.PL
- Inside Build.PL
- Our First Distribution
- h2xs
- Module::Starter
- Custom Templates
- Inside Your Perl Distribution
- The META File
- Adding Additional Modules
- Inside a Module
- Plain Ol' Documentation
- Pod Command Paragraphs
- Pod Paragraphs
- Pod Formatting Codes
- Checking the Pod Format
- The Module Code
- Module Building Summary
- Creating a Module::Build Distribution
- Creating a ExtUtils::Makemaker Distribution
- Exercises
- Chapter 13. Introduction to Objects
- If We Could Talk to the Animals. . .
- Introducing the Method Invocation Arrow
- The Extra Parameter of Method Invocation
- Calling a Second Method to Simplify Things
- A Few Notes About @ISA
- Overriding the Methods
- Starting the Search from a Different Place
- The SUPER Way of Doing Things
- What to Do with @_
- Where We Are
- Our Barnyard Summary
- Exercises
- Chapter 14. Introduction to Testing
- Why Should We Test?
- The Perl Testing Process
- Test Anywhere Protocol
- The Art of Testing
- A Test Example
- The Test Harness
- The Standard Tests
- Checking that Modules Compile
- The Boilerplate Tests
- The Pod Tests
- Adding Our First Tests
- Measuring Our Test Coverage
- Subroutine Coverage
- Statement Coverage
- Branch Coverage
- Conditional Coverage
- Exercises
- Chapter 15. Objects with Data
- A Horse Is a Horse, of Course of Course-Or Is It?
- Invoking an Instance Method
- Accessing the Instance Data
- How to Build a Horse
- Inheriting the Constructor
- Making a Method Work with Either Classes or Instances
- Adding Parameters to a Method
- More Interesting Instances
- A Horse of a Different Color
- Getting Our Deposit Back
- Don't Look Inside the Box
- Faster Getters and Setters
- Getters that Double as Setters
- Restricting a Method to Class Only or Instance Only
- Exercise
- Chapter 16. Some Advanced Object Topics
- UNIVERSAL Methods
- Testing Our Objects for Good Behavior
- The Last Resort
- Using AUTOLOAD for Accessors
- Creating Getters and Setters More Easily
- Multiple Inheritance
- Exercises
- Chapter 17. Exporter
- What use Is Doing
- Importing with Exporter
- @EXPORT and @EXPORT_OK
- Grouping with %EXPORT_TAGS
- Custom Import Routines
- Exercises
- Chapter 18. Object Destruction
- Cleaning Up After Ourselves
- Nested Object Destruction
- Beating a Dead Horse
- Indirect Object Notation
- Additional Instance Variables in Subclasses
- Using Class Variables
- Weakening the Argument
- Exercise
- Chapter 19. Introduction to Moose
- Making Animals with Moose
- Roles Instead of Inheritance
- Default Values
- Constraining Values
- Wrapping Methods
- Read-Only Attributes
- Improving the Race Horse
- Further Study
- Exercises
- Chapter 20. Advanced Testing
- Skipping Tests
- Testing Object-Oriented Features
- Grouping Tests
- Testing Large Strings
- Testing Files
- Testing STDOUT or STDERR
- Using Mock Objects
- Writing Our Own Test::* Modules
- Exercises
- Chapter 21. Contributing to CPAN
- The Comprehensive Perl Archive Network
- Getting Prepared
- How PAUSE Works
- The Indexer
- Module Maintainers
- Before We Start Work
- Preparing the Distribution
- Create or Update the README
- Check the Build File
- Update the Manifest
- Increase the Version String
- Test the Distribution
- Uploading the Distribution
- Testing on Multiple Platforms
- Announcing the Module
- Exercises
- Appendix. Answers to Exercises
- Answers for Chapter 1
- Exercise 1
- Exercise 2
- Answers for Chapter 2
- Exercise 1
- Exercise 2
- Exercise 3
- Answers for Chapter 3
- Exercise 1
- Exercise 2
- Answers for Chapter 4
- Exercise 1
- Exercise 2
- Exercise 3
- Answers for Chapter 5
- Exercise 1
- Exercise 2
- Exercise 3
- Answers for Chapter 6
- Exercise 1
- Exercise 2
- Answer for Chapter 7
- Exercise 1
- Answers for Chapter 8
- Exercise 1
- Exercise 2
- Exercise 3
- Answers for Chapter 9
- Exercise 1
- Exercise 2
- Exercise 3
- Answers for Chapter 10
- Exercise 1
- Exercise 2
- Exercise 3
- Exercise 4
- Exercise 5
- Answers for Chapter 11
- Exercise 1
- Exercise 2
- Answers for Chapter 12
- Exercise 1
- Exercise 2
- Exercise 3
- Answers for Chapter 13
- Exercise 1
- Exercise 2
- Exercise 3
- Answers for Chapter 14
- Exercise 1
- Exercise 2
- Exercise 3
- Exercise 4
- Exercise 5
- Answer for Chapter 15
- Exercise 1
- Answers for Chapter 16
- Exercise 1
- Exercise 2
- Answers for Chapter 17
- Exercise 1
- Exercise 2
- Exercise 3
- Answers for Chapter 18
- Exercise 1
- Answers for Chapter 19
- Exercise 1
- Exercise 2
- Answers for Chapter 20
- Exercise 1
- Exercise 2
- Answers for Chapter 21
- Exercise 1
- Exercise 2
- Exercise 3
- Exercise 4
- Exercise 5
- Exercise 6
- Exercise 7
- Index of Modules in this Book
- Index
System requirements
File format: PDF
Copy-Protection: Adobe-DRM (Digital Rights Management)
System requirements:
- Computer (Windows; MacOS X; Linux): Install the free reader Adobe Digital Editions prior to download (see eBook Help).
- Tablet/smartphone (Android; iOS): Install the free app Adobe Digital Editions or the app PocketBook before downloading (see eBook Help).
- E-reader: Bookeen, Kobo, Pocketbook, Sony, Tolino and many more (only limited: Kindle).
The file format PDF always displays a book page identically on any hardware. This makes PDF suitable for complex layouts such as those used in textbooks and reference books (images, tables, columns, footnotes). Unfortunately, on the small screens of e-readers or smartphones, PDFs are rather annoying, requiring too much scrolling.
This eBook uses Adobe-DRM, a „hard” copy protection. If the necessary requirements are not met, unfortunately you will not be able to open the eBook. You will therefore need to prepare your reading hardware before downloading.
Please note: We strongly recommend that you authorise using your personal Adobe ID after installation of any reading software.
For more information, see our eBook Help page.