Muutke küpsiste eelistusi

E-raamat: Learning Perl

3.99/5 (1863 hinnangut Goodreads-ist)
  • Formaat: 398 pages
  • Ilmumisaeg: 29-Jun-2021
  • Kirjastus: O'Reilly Media
  • Keel: eng
  • ISBN-13: 9781492094920
  • Formaat - PDF+DRM
  • Hind: 40,37 €*
  • * hind on lõplik, st. muud allahindlused enam ei rakendu
  • Lisa ostukorvi
  • Lisa soovinimekirja
  • See e-raamat on mõeldud ainult isiklikuks kasutamiseks. E-raamatuid ei saa tagastada.
  • Formaat: 398 pages
  • Ilmumisaeg: 29-Jun-2021
  • Kirjastus: O'Reilly Media
  • Keel: eng
  • ISBN-13: 9781492094920

DRM piirangud

  • Kopeerimine (copy/paste):

    ei ole lubatud

  • Printimine:

    ei ole lubatud

  • Kasutamine:

    Digitaalõiguste kaitse (DRM)
    Kirjastus on väljastanud selle e-raamatu krüpteeritud kujul, mis tähendab, et selle lugemiseks peate installeerima spetsiaalse tarkvara. Samuti peate looma endale  Adobe ID Rohkem infot siin. E-raamatut saab lugeda 1 kasutaja ning alla laadida kuni 6'de seadmesse (kõik autoriseeritud sama Adobe ID-ga).

    Vajalik tarkvara
    Mobiilsetes seadmetes (telefon või tahvelarvuti) lugemiseks peate installeerima selle tasuta rakenduse: PocketBook Reader (iOS / Android)

    PC või Mac seadmes lugemiseks peate installima Adobe Digital Editionsi (Seeon tasuta rakendus spetsiaalselt e-raamatute lugemiseks. Seda ei tohi segamini ajada Adober Reader'iga, mis tõenäoliselt on juba teie arvutisse installeeritud )

    Seda e-raamatut ei saa lugeda Amazon Kindle's. 

If you're just getting started with Perl, this is the book you want&;whether you're a programmer, system administrator, or web hacker. Nicknamed "the Llama" by two generations of users, this best seller closely follows the popular introductory Perl course taught by the authors since 1991. This eighth edition covers recent changes to the language up to version 5.34.

Perl is suitable for almost any task on almost any platform, from short fixes to complete web applications. Learning Perl teaches you the basics and shows you how to write simple, single-file programs&;roughly 90% of the Perl programs in use today. And each chapter includes exercises to help you practice what you've just learned. Other books may teach you to program in Perl, but this book will turn you into a Perl programmer.

Topics include:

  • Perl data and variable types
  • Subroutines
  • File operations
  • Regular expressions
  • String manipulation (including Unicode)
  • Lists and sorting
  • Process management
  • Use of third-party modules
Preface xiii
1 Introduction 1(18)
Questions and Answers
1(3)
Is This the Right Book for You?
1(1)
What About the Exercises and Their Answers?
2(1)
What HIM a Perl Course Instructor?
3(1)
What Does "Perl" Stand For?
4(4)
Why Did Larry Create Perl?
4(1)
Why Didn't Larry Just Use Some Other Language?
4(1)
Is Perl Easy or Hard?
5(1)
How Did Perl Get to Be So Popular?
6(1)
What's Happening with Perl Now?
7(1)
What's Perl Really Good For?
7(1)
What Is Perl Not Good For?
8(1)
How Can I Get Perl?
8(2)
What Is CPAN?
9(1)
Is There Any Kind of Support?
9(1)
What If I Find a Bug in Perl?
10(1)
How Do I Make a Perl Program?
10(5)
A Simple Program
11(2)
What's Inside That Program?
13(2)
How Do I Compile My Perl Program?
15(1)
A Whirlwind Tour of Perl
15(2)
Exercises
17(2)
2 Scalar Data 19(24)
Numbers
19(4)
All Numbers Have the Same Format Internally
20(1)
Integer Literals
20(1)
Nondecimal Integer Literals
20(1)
Floating-Point Literals
21(1)
Numeric Operators
22(1)
Strings
23(4)
Single-Quoted String Literals
23(1)
Double-Quoted String Literals
24(1)
String Operators
25(1)
Automatic Conversion Between Numbers and Strings
26(1)
Perl's Built-in Warnings
27(2)
Interpreting Nondecimal Numerals
28(1)
Scalar Variables
29(3)
Choosing Good Variable Names
30(1)
Scalar Assignment
31(1)
Compound Assignment Operators
31(1)
Output with print
32(5)
Interpolation of Scalar Variables into Strings
32(2)
Creating Characters by Code Point
34(1)
Operator Precedence and Associativity
34(2)
Comparison Operators
36(1)
The if Control Structure
37(1)
Boolean Values
37(1)
Getting User Input
38(1)
The chomp Operator
39(1)
The while Control Structure
40(1)
The undef Value
40(1)
The defined Function
41(1)
Exercises
42(1)
3 Lists and Arrays 43(18)
Accessing Elements of an Array
44(1)
Special Array Indices
45(1)
List Literals
45(2)
The qw Shortcut
46(1)
List Assignment
47(4)
The pop and push Operators
49(1)
The shift and unshift Operators
49(1)
The splice Operator
50(1)
Interpolating Arrays into Strings
51(1)
The foreach Control Structure
52(3)
Peds Favorite Default: $_
53(1)
The reverse Operator
53(1)
The sort Operator
54(1)
The each Operator
54(1)
Scalar and List Context
55(3)
Using List-Producing Expressions in Scalar Context
56(1)
Using Scalar-Producing Expressions in List Context
57(1)
Forcing Scalar Context
58(1)
STDIN in List Context
58(1)
Exercises
59(2)
4 Subroutines 61(20)
Defining a Subroutine
61(1)
Invoking a Subroutine
62(1)
Return Values
62(2)
Arguments
64(2)
Private Variables in Subroutines
66(1)
Variable-Length Parameter Lists
67(2)
A Better &max Routine
67(1)
Empty Parameter Lists
68(1)
Notes on Lexical (my) Variables
69(1)
The use strict Pragma
70(1)
The return Operator
71(3)
Omitting the Ampersand
72(2)
Nonscalar Return Values
74(1)
Persistent, Private Variables
74(2)
Subroutine Signatures
76(3)
Prototypes
78(1)
Exercises
79(2)
5 Input and Output 81(24)
Input from Standard Input
81(2)
Input from the Diamond Operator
83(2)
The Double Diamond
85(1)
The Invocation Arguments
85(1)
Output to Standard Output
86(3)
Formatted Output with printf
89(2)
Arrays and printf
91(1)
Filehandles
91(2)
Opening a Filehandle
93(4)
Binmoding Filehandles
96(1)
Bad Filehandles
96(1)
Closing a Filehandle
97(1)
Fatal Errors with die
97(3)
Warning Messages with warn
99(1)
Automatically dieing
99(1)
Using Filehandles
100(1)
Changing the Default Output Filehandle
100(1)
Reopening a Standard Filehandle
101(1)
Output with say
101(1)
Filehandles in a Scalar
102(2)
Exercises
104(1)
6 Hashes 105(14)
What Is a Hash?
105(3)
Why Use a Hash?
107(1)
Hash Element Access
108(4)
The Hash as a Whole
109(1)
Hash Assignment
110(1)
The Big Arrow
111(1)
Hash Functions
112(3)
The keys and values Functions
112(1)
The each Function
113(2)
Typical Use of a Hash
115(1)
The exists Function
115(1)
The delete Function
115(1)
Hash Element Interpolation
116(1)
The %ENV Hash
116(1)
Exercises
117(2)
7 Regular Expressions 119(22)
Sequences
119(2)
Practice Some Patterns
121(2)
The Wildcard
123(2)
Quantifiers
125(4)
Grouping in Patterns
129(3)
Alternation
132(2)
Character Classes
134(2)
Character Class Shortcuts
135(1)
Negating the Shortcuts
136(1)
Unicode Properties
136(1)
Anchors
137(3)
Word Anchors
139(1)
Exercises
140(1)
8 Matching with Regular Expressions 141(22)
Matches with m//
141(1)
Match Modifiers
142(6)
Case-Insensitive Matching with /i
142(1)
Matching Any Character with /s
142(1)
Adding Whitespace with /x
143(2)
Combining Option Modifiers
145(1)
Choosing a Character Interpretation
145(2)
Beginning- and End-of-Line Anchors
147(1)
Other Options
148(1)
The Binding Operator =~
148(1)
The Match Variables
149(9)
The Persistence of Captures
150(1)
Captures in Alternations
151(2)
Noncapturing Parentheses
153(1)
Named Captures
154(2)
The Automatic Match Variables
156(2)
Precedence
158(2)
Examples of Precedence
159(1)
And There's More
159(1)
A Pattern Test Program
160(1)
Exercises
160(3)
9 Processing Text with Regular Expressions 163(16)
Substitutions with s///
163(5)
Global Replacements with /g
164(1)
Different Delimiters
165(1)
Substitution Modifiers
165(1)
The Binding Operator
165(1)
Nondestructive Substitutions
165(1)
Case Shifting
166(2)
Metaquoting
168(1)
The split Operator
168(2)
The join Function
170(1)
m// in List Context
170(1)
More Powerful Regular Expressions
171(7)
Nongreedy Quantifiers
171(2)
Fancier Word Boundaries
173(1)
Matching Multiple-Line Text
174(1)
Updating Many Files
174(3)
In-Place Editing from the Command Line
177(1)
Exercises
178(1)
10 More Control Structures 179(20)
The unless Control Structure
179(1)
The else Clause with unless
180(1)
The until Control Structure
180(1)
Statement Modifiers
181(1)
The Naked Block Control Structure
182(1)
The elsif Clause
183(1)
Autoincrement and Autodecrement
184(1)
The Value of Autoincrement
184(1)
The for Control Structure
185(3)
The Secret Connection Between foreach and for
187(1)
Loop Controls
188(4)
The last Operator
188(1)
The next Operator
189(1)
The redo Operator
190(1)
Labeled Blocks
191(1)
The Conditional Operator
192(1)
Logical Operators
193(5)
The Value of a Short-Circuit Operator
194(1)
The defined-or Operator
195(1)
Control Structures Using Partial-Evaluation Operators
196(2)
Exercises
198(1)
11 Perl Modules 199(12)
Finding Modules
199(1)
Installing Modules
200(3)
Using Your Own Directories
201(2)
Using Simple Modules
203(7)
The File::Basename Module
204(1)
Using Only Some Functions from a Module
205(1)
The File::Spec Module
206(1)
Path::Class
207(1)
Databases and DBI
208(1)
Dates and Times
209(1)
Exercises
210(1)
12 File Tests 211(14)
File Test Operators
211(7)
Testing Several Attributes of the Same File
215(2)
Stacked File Test Operators
217(1)
The stat and lstat Functions
218(1)
The localtime Function
219(1)
Bitwise Operators
220(4)
Using Bitstrings
221(3)
Exercises
224(1)
13 Directory Operations 225(20)
The Current Working Directory
225(1)
Changing the Directory
226(1)
Globbing
227(2)
An Alternate Syntax for Globbing
229(1)
Directory Handles
230(2)
Manipulating Files and Directories
232(1)
Removing Files
232(1)
Renaming Files
233(2)
Links and Files
235(4)
Making and Removing Directories
239(2)
Modifying Permissions
241(1)
Changing Ownership
241(1)
Changing Timestamps
242(1)
Exercises
242(3)
14 Strings and Sorting 245(12)
Finding a Substring with index
245(2)
Manipulating a Substring with substr
247(1)
Formatting Data with sprintf
248(2)
Using sprintf with "Money Numbers"
249(1)
Advanced Sorting
250(6)
Sorting a Hash by Value
254(1)
Sorting by Multiple Keys
255(1)
Exercises
256(1)
15 Process Management 257(20)
The system Function
257(5)
Avoiding the Shell
260(2)
The Environment Variables
262(1)
The exec Function
263(1)
Using Backquotes to Capture Output
264(4)
Using Backquotes in a List Context
267(1)
External Processes with IPC::System::Simple
268(1)
Processes as Filehandles
269(2)
Getting Down and Dirty with fork
271(1)
Sending and Receiving Signals
272(3)
Exercises
275(2)
16 Some Advanced Perl Techniques 277(18)
Slices
277(6)
Array Slice
279(2)
Hash Slice
281(1)
Key-Value Slices
282(1)
Trapping Errors
283(6)
Using eval
283(4)
More Advanced Error Handling
287(2)
Picking Items from a List with grep
289(1)
Transforming Items from a List with map
290(1)
Fancier List Utilities
291(2)
Exercises
293(2)
A Exercise Answers 295(36)
B Beyond the Llama 331(10)
C A Unicode Primer 341(10)
D Experimental Features 351(8)
Index 359
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.

brian d foy is a prolific Perl trainer and writer, and runs The Perl Review to help people use and understand Perl through educational, consulting, code review, and more. He's a frequent speaker at Perl conferences. He's the co-author of Learning Perl, Intermediate Perl, and Effective Perl Programming, and the author of Mastering Perl. He was an instructor and author for Stonehenge Consulting Services from 1998 to 2009, a Perl user since he was a physics graduate student, and a die-hard Mac user since he first owned a computer. He founded the first Perl user group, the New York Perl Mongers, as well as the Perl advocacy nonprofit Perl Mongers, Inc., which helped form more than 200 Perl user groups across the globe. He maintains the perlfaq portions of the core Perl documentation, several modules on CPAN, and some stand-alone scripts.

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.