Buy Learning Perl Objects, References and Modules by Randal L. Schwartz
Book 1
Book 2
Book 3
Book 1
Book 2
Book 3
Book 1
Book 2
Book 3
Book 1
Book 2
Book 3
Home > Computing and Information Technology > Computer programming / software engineering > Web programming > Learning Perl Objects, References and Modules
Learning Perl Objects, References and Modules

Learning Perl Objects, References and Modules


     0     
5
4
3
2
1



Out of Stock


Notify me when this book is in stock
X
About the Book

This volume offers a gentle introduction to the world of references, object-oriented programming, and the use of Perl modules that form the backbone of any effective Perl program. Following the successful format of "Learning Perl", each chapter in the book is designed to be small enough to be read in just an hour or two. Each chapter ends with a series of exercises to help you practice what you've learned with answers in an appendix for your reference. Assuming just a rudimentary knowledge of Perl, this book explains how to effectively use both standard and object-oriented Perl modules, how to use namespaces and packages properly, and how to use references to build powerful data structures. In short, it covers everything that separates the Perl dabbler from the Perl programmer. Topics covered include: building larger programs with Perl; references and scoping; manipulating complex data structures; introduction to objects; advanced object topics; writing a distribution; essential testing; and contributing to CPAN.

Table of Contents:
Foreword Preface 1. Introduction What Should You Know Already? What About All Those Footnotes? What's with the Exercises? What if I'm a Perl Course Instructor? 2. Building Larger Programs The Cure for the Common Code Inserting Code with eval Using do Using require require and @INC The Problem of Namespace Collisions Packages as Namespace Separators Scope of a Package Directive Packages and Lexicals Exercises 3. Introduction to References Performing the Same Task on Many Arrays Taking a Reference to an Array Dereferencing the Array Reference Dropping Those Braces Modifying the Array Nested Data Structures Simplifying Nested Element References with Arrows References to Hashes Exercises 4. 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 5. Manipulating Complex Data Structures Using the Debugger to View Complex Data Viewing Complex Data with Data::Dumper Storing Complex Data with Storable The map and grep Operators Using map Applying a Bit of Indirection Selecting and Altering Complex Data Exercises 6. 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 Exercise 7. Practical Reference Tricks Review of Sorting Sorting with Indices Sorting Efficiently The Schwartzian Transform Recursively Defined Data Building Recursively Defined Data Displaying Recursively Defined Data Exercises 8. 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 So Far... Exercises 9. 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 Your 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 10. Object Destruction Beating a Dead Horse Indirect Object Notation Additional Instance Variables in Subclasses Using Class Variables Weakening the Argument Exercise 11. Some Advanced Object Topics UNIVERSAL Methods Testing Your Objects for Good Behavior AUTOLOAD as a Last Resort Using AUTOLOAD for Accessors Creating Getters and Setters More Easily Multiple Inheritance References to Filehandles Exercise 12. Using Modules Sample Function-Oriented Interface: File::Basename Selecting What to Import Sample Object-Oriented Interface: File::Spec A More Typical Object-Oriented Module: Math::BigInt The Differences Between OO and Non-OO Modules What use Is Doing Setting the Path at the Right Time Importing with Exporter @EXPORT and @EXPORT_OK Exporting in a Primarily OO Module Custom Import Routines Exercise 13. Writing a Distribution Starting with h2xs Looking at the Templates The Prototype Module Itself Embedded Documentation Controlling the Distribution withMakefile.PL Alternate Installation Locations (PREFIX=...) Trivial make test Trivial make install Trivial make dist Using the Alternate Library Location Exercise 14. Essential Testing What the Test Harness Does Writing Tests with Test::Simple Writing Tests with Test::More Conditional Tests More Complex Tests (Multiple Test Scripts) Testing Things That Write to STDOUT and STDERR Exercise 15. Contributing to CPAN The Comprehensive Perl Archive Network Getting Prepared Preparing Your Distribution Uploading Your Distribution Announcing the Module Testing on Multiple Platforms Consider Writing an Article or Giving a Talk Exercise Appendix. Answers to Exercises Index

About the Author :
Randal L. Schwartz is a two-decade veteran of the software industry. He is skilled in software design, system administration, security, technical writing, and training. Randal has coauthored the "must-have" standards: Programming Perl, Learning Perl, Learning Perl for Win32 Systems, and Effective Perl Learning, and is a regular columnist for WebTechniques, PerformanceComputing, SysAdmin, and Linux magazines.He is also a frequent contributor to the Perl newsgroups, and has moderated comp.lang.perl.announce since its inception. His offbeat humor and technical mastery have reached legendary proportions worldwide (but he probably started some of those legends himself). Randal's desire to give back to the Perl community inspired him to help create and provide initial funding for The Perl Institute. He is also a founding board member of the Perl Mongers (perl.org), the worldwide Perl grassroots advocacy organization. Since 1985, Randal has owned and operated Stonehenge Consulting Services, Inc. Randal can be reached for comment at merlyn@stonehenge.com or (503) 777-0095, and welcomes questions on Perl and other related topics. Tom Phoenix has been working in the field of education since 1982. After more than thirteen years of dissections, explosions, work with interesting animals, and high-voltage sparks during his work at a science museum, he started teaching Perl classes for Stonehenge Consulting Services, where he's worked since 1996. Since then, he has traveled to many interesting locations, so you might see him soon at a Perl Mongers' meeting. When he has time, he answers questions on Usenet's comp.lang.perl.misc and comp.lang.perl.moderated newsgroups, and contributes to the development and usefulness of Perl. Besides his work with Perl, Perl hackers, and related topics, Tom spends his time on amateur cryptography and speaking Esperanto. His home is in Portland, Oregon.

Review :
"Here we have a typical O'Reilly book, with all the humor that makes them so popular. The book is littered with examples trying to bring a lighter side to what is often a pretty heavy subject." - Linux Magazine


Best Sellers


Product Details
  • ISBN-13: 9780596004781
  • Publisher: O'Reilly Media
  • Publisher Imprint: O'Reilly Media
  • Height: 232 mm
  • Returnable: N
  • Width: 180 mm
  • ISBN-10: 0596004788
  • Publisher Date: 15 Jul 2003
  • Binding: Paperback
  • Language: English
  • Weight: 366 gr


Similar Products

Add Photo
Add Photo

Customer Reviews

REVIEWS      0     
Click Here To Be The First to Review this Product
Learning Perl Objects, References and Modules
O'Reilly Media -
Learning Perl Objects, References and Modules
Writing guidlines
We want to publish your review, so please:
  • keep your review on the product. Review's that defame author's character will be rejected.
  • Keep your review focused on the product.
  • Avoid writing about customer service. contact us instead if you have issue requiring immediate attention.
  • Refrain from mentioning competitors or the specific price you paid for the product.
  • Do not include any personally identifiable information, such as full names.

Learning Perl Objects, References and Modules

Required fields are marked with *

Review Title*
Review
    Add Photo Add up to 6 photos
    Would you recommend this product to a friend?
    Tag this Book Read more
    Does your review contain spoilers?
    What type of reader best describes you?
    I agree to the terms & conditions
    You may receive emails regarding this submission. Any emails will include the ability to opt-out of future communications.

    CUSTOMER RATINGS AND REVIEWS AND QUESTIONS AND ANSWERS TERMS OF USE

    These Terms of Use govern your conduct associated with the Customer Ratings and Reviews and/or Questions and Answers service offered by Bookswagon (the "CRR Service").


    By submitting any content to Bookswagon, you guarantee that:
    • You are the sole author and owner of the intellectual property rights in the content;
    • All "moral rights" that you may have in such content have been voluntarily waived by you;
    • All content that you post is accurate;
    • You are at least 13 years old;
    • Use of the content you supply does not violate these Terms of Use and will not cause injury to any person or entity.
    You further agree that you may not submit any content:
    • That is known by you to be false, inaccurate or misleading;
    • That infringes any third party's copyright, patent, trademark, trade secret or other proprietary rights or rights of publicity or privacy;
    • That violates any law, statute, ordinance or regulation (including, but not limited to, those governing, consumer protection, unfair competition, anti-discrimination or false advertising);
    • That is, or may reasonably be considered to be, defamatory, libelous, hateful, racially or religiously biased or offensive, unlawfully threatening or unlawfully harassing to any individual, partnership or corporation;
    • For which you were compensated or granted any consideration by any unapproved third party;
    • That includes any information that references other websites, addresses, email addresses, contact information or phone numbers;
    • That contains any computer viruses, worms or other potentially damaging computer programs or files.
    You agree to indemnify and hold Bookswagon (and its officers, directors, agents, subsidiaries, joint ventures, employees and third-party service providers, including but not limited to Bazaarvoice, Inc.), harmless from all claims, demands, and damages (actual and consequential) of every kind and nature, known and unknown including reasonable attorneys' fees, arising out of a breach of your representations and warranties set forth above, or your violation of any law or the rights of a third party.


    For any content that you submit, you grant Bookswagon a perpetual, irrevocable, royalty-free, transferable right and license to use, copy, modify, delete in its entirety, adapt, publish, translate, create derivative works from and/or sell, transfer, and/or distribute such content and/or incorporate such content into any form, medium or technology throughout the world without compensation to you. Additionally,  Bookswagon may transfer or share any personal information that you submit with its third-party service providers, including but not limited to Bazaarvoice, Inc. in accordance with  Privacy Policy


    All content that you submit may be used at Bookswagon's sole discretion. Bookswagon reserves the right to change, condense, withhold publication, remove or delete any content on Bookswagon's website that Bookswagon deems, in its sole discretion, to violate the content guidelines or any other provision of these Terms of Use.  Bookswagon does not guarantee that you will have any recourse through Bookswagon to edit or delete any content you have submitted. Ratings and written comments are generally posted within two to four business days. However, Bookswagon reserves the right to remove or to refuse to post any submission to the extent authorized by law. You acknowledge that you, not Bookswagon, are responsible for the contents of your submission. None of the content that you submit shall be subject to any obligation of confidence on the part of Bookswagon, its agents, subsidiaries, affiliates, partners or third party service providers (including but not limited to Bazaarvoice, Inc.)and their respective directors, officers and employees.

    Accept

    Fresh on the Shelf


    Inspired by your browsing history


    Your review has been submitted!

    You've already reviewed this product!