
53 Atoms Molecules Built-in Data Types Variables Names Name Lookups Scalar Values Numeric Literals String Literals Pick Your Own Quotes Or Leave Out the Quotes Entirely Interpolating Array Values “Here” Documents Version Literals Other Literal Tokens Context Scalar and List Context Boolean Context Void Context Interpolative Context List Values and Arrays List Assignment Array Length Hashes Typeglobs and Filehandles Input Operators Command Input (Backtick) Operator Line Input (Angle) Operator Filename Globbing Operatorĥ3 54 56 58 60 62 65 67 67 70 72 73 73 75 76 76 76 78 79 79 79 82 83 84 86 87 87 88 91ģ. List Processing What You Don’t Know Won’t Hurt You (Much) 3 Getting Started Natural and Artificial Languages Variable Syntax Verbs An Average Example How to Do It Filehandles Operators Some Binary Arithmetic Operators String Operators Assignment Operators Unary Arithmetic Operators Logical Operators Some Numeric and String Comparison Operators Some File Test Operators Control Structures What Is Truth? The given and when Statements Looping Constructs Regular Expressions Quantifiers Minimal Matching Nailing Things Down Backreferencesģ 4 5 17 18 20 21 24 25 25 26 28 29 30 31 31 32 34 35 39 43 44 44 45 iii While every precaution has been taken in the preparation of this book, the publisher and authors assume no responsibility for errors or omissions, or for damages resulting from the use of the information contained herein. Where those designations appear in this book, and O’Reilly Media, Inc., was aware of a trademark claim, the designations have been printed in caps or initial caps. Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks. Programming Perl, the image of a dromedary camel, and related trade dress are trademarks of O’Reilly Media, Inc. Nutshell Handbook, the Nutshell Handbook logo, and the O’Reilly logo are registered trademarks of O’Reilly Media, Inc. Revision History for the Fourth Edition: First release See for release details. For more information, contact our corporate/institutional sales department: (800) 998-9938 or Įditor: Andy Oram Production Editor: Holly Bauer Proofreader: Marlowe Shaeffer Indexer: Lucie Haskins January 1991: September 1996: July 2000: February 2012:Ĭover Designer: Karen Montgomery Interior Designer: David Futato Illustrator: Robert Romanoįirst Edition. Online editions are also available for most titles ().


O’Reilly books may be purchased for educational, business, or sales promotional use.

Published by O’Reilly Media, Inc., 1005 Gravenstein Highway North, Sebastopol, CA 95472. Programming Perl, Fourth Edition by Tom Christiansen, brian d foy & Larry Wall, with Jon OrwantĬopyright © 2012 Tom Christiansen, brian d foy, Larry Wall, and Jon Orwant. Tom Christiansen, brian d foy & Larry Wall with Jon Orwant
