• Complain

Randal L. Schwartz - Intermediate Perl

Here you can read online Randal L. Schwartz - Intermediate Perl full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. year: 2012, publisher: OReilly Media, genre: Computer. Description of the work, (preface) as well as reviews are available. Best literature library LitArk.com created for fans of good reading and offers a wide selection of genres:

Romance novel Science fiction Adventure Detective Science History Home and family Prose Art Politics Computer Non-fiction Religion Business Children Humor

Choose a favorite category and find really read worthwhile books. Enjoy immersion in the world of imagination, feel the emotions of the characters or learn something new for yourself, make an fascinating discovery.

Randal L. Schwartz Intermediate Perl

Intermediate Perl: summary, description and annotation

We offer to read an annotation, description, summary or preface (depends on what the author of the book "Intermediate Perl" wrote himself). If you haven't found the necessary information about the book — write in the comments, we will try to find it.

This book picks up right where Learning Perl leaves off. With Intermediate Perl, youll graduate from short scripts to much larger programs, using features that make Perl a general-purpose language. This gentle but thorough guide introduces you to modules, complex data structures, and object-oriented programming.

Each chapter is small enough to be read in just an hour or two, ending with exercises to help you practice what youve learned. If youre familiar with the material in Learning Perl and have the ambition to go further, Intermediate Perl will teach you most of the core Perl language concepts you need for writing robust programs on any platform.

Topics include:

  • Packages and namespaces
  • References and scoping, including regular expression references
  • Manipulating complex data structures
  • Object-oriented programming
  • Writing and using modules
  • Testing Perl code
  • Contributing to CPAN

Just like Learning Perl, material in this book closely follows the popular introductory Perl course the authors have taught since 1991. This second edition covers recent changes to the language up to version 5.14.

Randal L. Schwartz: author's other books


Who wrote Intermediate Perl? Find out the surname, the name of the author of the book and a list of all author's works by series.

Intermediate Perl — read online for free the complete book (whole text) full work

Below is the text of the book, divided by pages. System saving the place of the last page read, allows you to conveniently read the book "Intermediate Perl" online for free, without having to search again every time where you left off. Put a bookmark, and you can go to the page where you finished reading at any time.

Light

Font size:

Reset

Interval:

Bookmark:

Make
Intermediate Perl
Randal L. Schwartz
brian d foy
Tom Phoenix
Published by OReilly Media

Beijing Cambridge Farnham Kln Sebastopol Tokyo Foreword Damian Conway May - photo 1

Beijing Cambridge Farnham Kln Sebastopol Tokyo

Foreword
Damian Conway, May 2003

Perls object-oriented mechanism is classic prestidigitation. It takes a collection of Perls existing non-OO features such as packages, references, hashes, arrays, subroutines, and modules, and thenwith nothing up its sleevemanages to conjure up fully functional objects, classes, and methods. Seemingly out of nowhere.

Thats a great trick. It means you can build on your existing Perl knowledge and ease your way into OO Perl development, without first needing to conquer a mountain of new syntax or navigate an ocean of new techniques. It also means you can progressively fine-tune OO Perl to meet your own needs, by selecting from the existing constructs the one that best suits your task.

But theres a problem. Since Perl co-opts packages, references, hashes, arrays, subroutines, and modules as the basis of its OO mechanism, to use OO Perl you already need to understand packages, references, hashes, arrays, subroutines, and modules.

And theres the rub. The learning curve hasnt been eliminated; its merely been pushed back half a dozen steps.

So then: how are you going to learn everything you need to know about non-OO Perl so you can start to learn everything you need to know about OO Perl?

This book is the answer. In the following pages, Randal draws on two decades of using Perl, and four decades of watching Gilligans Island and Mr. Ed , to explain each of the components of Perl that collectively underpin its OO features. And, better still, he then goes on to show exactly how to combine those components to create useful classes and objects.

So if you still feel like Gilligan when it comes to Perls objects, references, and modules, this book is just what the Professor ordered.

And thats straight from the horses mouth.

Preface

Almost 20 years ago (nearly an eternity in Internet time), Randal Schwartz wrote the first edition of Learning Perl. In the intervening years, Perl itself has grown substantially from a cool scripting language used primarily by Unix system administrators to a robust object-oriented programming language that runs on practically every computing platform known to mankind, and maybe some that arent.

Throughout its six editions, Learning Perl remained about the same size, around 300 pages, and continued to cover much of the same material to remain compact and accessible to the beginning programmer. But there is much more to learn about Perl.

Randal called the first edition of this book Learning Perl Objects, References, and Modules, and we renamed its update Intermediate Perl, but we like to think of it as just Learning More Perl. This is the book that picks up where Learning Perl leaves off. We show how to use Perl to write larger programs.

As in Learning Perl, we designed each chapter to be small enough to read in just an hour or so. Each chapter ends with a series of exercises to help you practice what youve just learned, and the answers are provided in the appendix for your reference. And, like Learning Perl, weve developed the material in this book for use in a teaching environment.

Unless we note otherwise, everything in this book applies equally well to Perl on any platform, whether that is Unix, Linux, Windows ActivePerl from ActiveState, Strawberry Perl, or any other modern implementation of Perl. To use this book you just need to be comfortable with the material in Learning Perl and have the ambition to go further.

After you finish this book, you will have seen most of the core Perl language concepts that youll need. The next book in the series is Mastering Perl, which focuses on applying what you already know to writing effective and robust Perl applications as well as managing the Perl software development life cycle.

At any point in your Perl career, you should also have Programming Perl, the (mostly) definitive bible of the language.

Structure of This Book

There are three major sections of this book. The first section deals with references, which are the keys to complex data structures as well as to object-oriented programming. The second section introduces objects and how Perl implements object-oriented programming. The third and last section deals with Perls module structure, testing, and the community infrastructure for distributing our work.

You should read this book from front to back, stopping to do the exercises. Each chapter builds on preceding chapters, and well assume that you know the material from those chapters as we show new topics.

, Introduction

An introduction to the material.

, Using Modules

Use Perls core modules as well as modules from other people. Were going to show you how to create your own modules later in the book, but until we do you can still use modules you already have.

, Intermediate Foundations

Pick up some intermediate Perl skills youll need for the rest of the book.

, Introduction to References

Introduce a level of redirection to allow the same code to operate on different sets of data.

, References and Scoping

Learn how Perl manages to keep track of pointers to data, and read an introduction to anonymous data structures and autovivification.

, Manipulating Complex Data Structures

Create, access, and print arbitrarily deep and nested data structures including arrays of arrays and hashes of hashes.

, Subroutine References

Capture behavior as an anonymous subroutine that you create dynamically and execute later.

, Filehandle References

Store filehandles in scalar variables that you can easily pass around your program or store in data structures.

, Regular Expression References

Compile regular expressions without immediately applying them, and use them as building blocks for larger patterns.

, Practical Reference Tricks

Sorting complex operations, the Schwartzian Transform , and working with recursively defined data.

, Building Larger Programs

Build larger programs by separating code into separate files and namespaces.

, Creating Your Own Perl Distribution

Create a Perl distribution as your first step toward object-oriented programming.

, Introduction to Objects

Work with classes, method calls, inheritance, and overriding.

, Introduction to Testing

Start to test your modules so you find problems with the code as you create it.

, Objects with Data

Add per instance data, including constructors, getters, and setters.

, Some Advanced Object Topics

Use multiple inheritance, automatic methods, and references to filehandles.

, Exporter

How use works, how we can decide what to export, and how we can create our own import routines.

, Object Destruction

Add behavior to an object that is going away, including object persistence.

, Introduction to Moose

Moose is an object framework available on CPAN.

, Advanced Testing

Test complex aspects of code and metacode things such as documentation and test coverage.

, Contributing to CPAN

Share your work with the world by uploading it to CPAN.

, Exercise Answers

Where to go to get answers.

Conventions Used in This Book

The following typographic conventions are used in this book:

Constant width

Used for function names, module names, filenames, environment variables, code snippets, and other literal text

Next page
Light

Font size:

Reset

Interval:

Bookmark:

Make

Similar books «Intermediate Perl»

Look at similar books to Intermediate Perl. We have selected literature similar in name and meaning in the hope of providing readers with more options to find new, interesting, not yet read works.


Reviews about «Intermediate Perl»

Discussion, reviews of the book Intermediate Perl and just readers' own opinions. Leave your comments, write what you think about the work, its meaning or the main characters. Specify what exactly you liked and what you didn't like, and why you think so.