Learning Pearl the Hard Way
Book information
Description
Do we really need another Perl book? Obviously yes: This is a book for people who already know how to program in another language, but don't know Perl. A book that gets through the basics as quickly as possible. How to do the fun stuff. A book that emphasizes good programming style in Perl. Many of the Perl programs are written in a quick-and-dirty style; I wanted to see if the style I have developed in other languages can translate. In many Perl books, object-oriented programming is treated as an optional feature for advanced programming. I wanted to bring it closer to the center of focus (although I am anything but an object-oriented bigot). In presenting Perl features, I tried to find examples that are interesting in their own right, and that encourage the reader to explore Perl's features. *** Published under the terms of the GNU Free Documentation License. Money raised from the sale of this book supports the development of free software and documentation. Contents......Page 5 1.1 Echo���������������......Page 9 1.2 Errors�����������������......Page 11 1.5 Array elements�������������������������......Page 12 1.6 Arrays and scalars�����������������������������......Page 13 1.8 List assignment��������������������������......Page 14 1.10 File handles������������������������......Page 15 1.11 cat���������������......Page 16 1.12 foreach and�����������������������......Page 17 1.13 Exercises���������������������......Page 18 2.1 Pattern matching���������������������������......Page 19 2.3 Quantiers���������������������......Page 20 2.4 Alternation����������������������......Page 21 2.6 Minimal matching���������������������������......Page 22 2.8 Some operators......Page 23 2.9 Prex operators��������������������������......Page 24 2.10 Subroutine semantics��������������������������������......Page 25 2.11 Exercises���������������������......Page 26 3.1 Stack operators��������������������������......Page 27 3.3 Hashes�����������������......Page 28 3.4 Frequency table��������������������������......Page 29 3.5 sort���������������......Page 31 3.7 References to subroutines������������������������������������......Page 32 3.8 Hashes as parameters�������������������������������......Page 33 3.9 Markov generator���������������������������......Page 34 3.10 Random text�����������������������......Page 36 3.11 Exercises���������������������......Page 37 4.1 Packages�������������������......Page 39 4.3 Methods������������������......Page 40 4.5 Printing objects���������������������������......Page 42 4.7 Heap::add��������������������......Page 43 4.8 Heap::remove�����������������������......Page 44 4.9 Trickle up���������������������......Page 45 4.10 Trickle down������������������������......Page 48 4.11 Exercises���������������������......Page 50 5.1 Variable-length codes��������������������������������......Page 51 5.2 The frequency table������������������������������......Page 52 5.4 The Human Tree��������������������������......Page 53 5.6 Building the Human tree�����������������������������������......Page 56 5.7 Building the code table����������������������������������......Page 57 5.8 Decoding�������������������......Page 58 6.1 URIs���������������......Page 61 6.2 HTTP GET�������������������......Page 62 6.4 Mirroring��������������������......Page 63 6.5 Parsing������������������......Page 64 6.7 Multiple processes�����������������������������......Page 66 6.9 Creating children����������������������������......Page 67 6.10 Talking back to parents�����������������������������������......Page 68 6.11 Exercises���������������������......Page 69
Similar books
The Reconnection: Heal Others, Heal Yourself [Paperback]
2007 · EPUB
Dreams and Visions in Medieval Literature [PhD thesis]
2015 · PDF
Think Stats: Exploratory Data Analysis, 3rd Edition
2025 · EPUB
Think Stats (Full Release)
2025 · EPUB
Think Python: How to Think Like a Computer Scientist
2024 · RAR
Think Python: How to Think Like a Computer Scientist
2024 · EPUB
Think Python: How to Think Like a Computer Scientist
2024 · PDF
Think Python, 3rd Edition (Third Early Release)
2023 · EPUB