Muutke küpsiste eelistusi

E-raamat: Beginning Perl

(Software Engineer, Weborama.com)
  • Formaat: PDF+DRM
  • Ilmumisaeg: 29-Aug-2012
  • Kirjastus: Wrox Press
  • Keel: eng
  • ISBN-13: 9781118221877
  • Formaat - PDF+DRM
  • Hind: 32,17 €*
  • * 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: PDF+DRM
  • Ilmumisaeg: 29-Aug-2012
  • Kirjastus: Wrox Press
  • Keel: eng
  • ISBN-13: 9781118221877

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. 

Presents an overview of the Perl programming language, and offers exercises, advice, and examples to demonstrate how to use it, covering CPAN, control flow, subroutines, directories, packages, and moose syntaxes.

Everything beginners need to start programming with Perl

Perl is the ever-popular, flexible, open source programming language that has been called the programmers’ Swiss army knife. This book introduces Perl to both new programmers and experienced ones who are looking to learn a new language. In the tradition of the popular Wrox Beginning guides, it presents step-by-step guidance in getting started, a host of try-it-out exercises, real-world examples, and everything necessary for a Perl novice to start programming with confidence.

  • Introduces Perl to both new programmers and experienced ones who want to learn a new language
  • Provides a host of real-world applications for today's environments so readers can get started immediately
  • Covers the new features of Perl but fully applicable to previous editions

Beginning Perl provides the information and instruction you need to confidently get started with Perl.

For Instructors: Classroom and training support material are available for this book.

Introduction xxiii
Chapter 1 What Is Perl?
1(24)
Perl Today
2(1)
Getting Perl
3(1)
Working with Non-Windows Platforms: perlbrew
4(2)
Using Windows
6(2)
The Perl Community
8(1)
IRC
8(1)
PerlMonks
9(1)
Perl Mongers
9(1)
StackOverflow
9(2)
Using perldoc
11(1)
Understanding the Structure of perldoc
11(1)
Getting Started with perldoc
11(1)
Using Tutorials and FAQs
12(2)
Using the perldoc -f function
14(1)
Using a Terminal Window
14(1)
Using the Command Line
15(1)
Creating a Work Directory
16(2)
Creating Hello, World!
18(1)
Writing Your First Program
18(3)
Shebang Lines
21(1)
Summary
22(3)
Chapter 2 Understanding The Cpan
25(16)
CPAN and METACPAN
26(1)
Finding and Evaluating Modules
27(2)
Downloading and Installing
29(4)
CPAN Clients
33(1)
Using the CPAN.pm Client
33(2)
Using the Cpanm Client
35(1)
PPM
36(1)
CPAN::Mini
36(3)
Summary
39(2)
Chapter 3 Variables
41(42)
What Is Programming?
42(1)
A Few Things to Note Before Getting Started
43(1)
strict, warnings, and diagnostics
43(1)
The my Function
43(1)
Sigils
44(1)
Identifiers
45(1)
Scalars
46(1)
Strings
47(4)
Numbers
51(2)
Arrays
53(1)
Breaking Down the Code
54(1)
Accessing Elements
55(3)
Iterating over Arrays
58(1)
Hashes
58(1)
Accessing Elements
59(1)
Iterating Over Hashes
60(1)
Adding Data to Hashes
60(1)
Slices
61(1)
Array Slices
62(1)
Hash Slices
62(1)
Context
63(1)
Scalar Context
63(1)
List Context
64(3)
Scope
67(1)
My Variables
67(2)
Package Variables
69(3)
Strict, Warnings, and Diagnostics
72(2)
strict
74(1)
warnings
74(1)
diagnostics
75(1)
Working Without a Net
76(2)
Perl's Built-in Variables
78(1)
$_
78(1)
%ENV
79(1)
@ARGV
79(1)
Other Special Variables
80(1)
Summary
81(2)
Chapter 4 Working With Data
83(42)
Using Scalars
84(1)
Working with Strings
85(9)
Using String Operators
94(3)
Scalar::Util
97(1)
Numeric Builtins
98(5)
Bitwise Operators
103(1)
Understanding Booleans
103(5)
Assignment Operators
108(1)
Precedence and Associativity
109(2)
Array and List Functions
111(1)
Built-in Array Functions
111(5)
List::Util
116(1)
Built-in Hash Functions
116(1)
delete()
116(1)
exists()
117(1)
keys()
117(1)
values()
117(1)
each()
117(2)
Scoping Keywords
119(1)
my()
119(1)
local()
119(1)
our()
120(1)
state()
120(1)
Summary
121(4)
Chapter 5 Control Flow
125(32)
Using the if Statement
126(1)
Understanding Basic Conditionals
126(2)
else/elsif/unless
128(3)
The Ternary Operator?
131(1)
for/foreach loops
132(1)
Arrays
132(3)
Lists
135(1)
C-Style
136(6)
Using while/until Loops
142(1)
Lists
143(1)
last/next/redo/continue
144(2)
Labels
146(1)
Statement Modifiers
147(1)
Types of Statement Modifiers
147(2)
Do while/do until
149(2)
given/when
151(1)
Basic Syntax
151(2)
The Switch Module
153(1)
Summary
154(3)
Chapter 6 References
157(18)
References 101
158(1)
Array References
158(1)
Hash References
159(1)
Anonymous References
160(3)
Other References
163(3)
Working with References
166(1)
Debugging
166(3)
Copying
169(3)
Slices
172(1)
Summary
173(2)
Chapter 7 Subroutines
175(44)
Subroutine Syntax
176(1)
Argument Handling
177(1)
Multiple Arguments
178(1)
Named Arguments
179(2)
Aliasing
181(1)
State Variables (Pre- and Post-5.10)
181(3)
Passing a List, Hash, or Hashref?
184(2)
Returning Data
186(1)
Returning True/False
186(2)
Returning Single and Multiple Values
188(1)
wantarray
189(1)
FAIL!
190(1)
"Wake Up! Time to Die!"
191(1)
Carp and croak
192(1)
eval
192(2)
evalGotchas
194(1)
Try::Tiny
195(1)
Subroutine References
196(1)
Existing Subroutines
196(1)
Anonymous Subroutines
197(1)
Closures
197(3)
Prototypes
200(1)
Argument Coercion
200(2)
More Prototype Tricks
202(2)
Mimicking Builtins
204(2)
Forward Declarations
206(1)
Prototype Summary
207(2)
Recursion
209(1)
Basic Recursion
209(1)
Divide and Conquer
210(1)
Memoization
211(4)
Things to Watch For
215(1)
Argument Aliasing
215(1)
Scope Issues
216(1)
Doing Too Much
216(1)
Too Many Arguments
217(1)
Summary
217(2)
Chapter 8 Regular Expressions
219(30)
Basic Matching
220(1)
Quantifiers
221(2)
Escape Sequences
223(3)
Extracting Data
226(2)
Modifiers and Anchors
228(3)
Character Classes
231(1)
Grouping
232(3)
Advanced Matching
235(1)
Substitutions
235(1)
Lookahead/Lookbehind Anchors
236(2)
Named Subexpressions (5.10)
238(3)
Common Regular Expression Issues
241(1)
Regexp::Common
241(1)
E-mail Addresses
242(1)
HTML
242(1)
Composing Regular Expressions
243(2)
Summary
245(4)
Chapter 9 Files And Directories
249(38)
Basic File Handling
250(1)
Opening and Reading a File
250(8)
File Test Operators
258(2)
The Diamond Operator
260(1)
Temporary Files
260(1)
DATA as a File
261(1)
binmode
262(3)
Directories
265(1)
Reading Directories
265(1)
Globbing
265(1)
Unicode
266(1)
What Is Unicode?
267(1)
Two Simple Rules
267(4)
Lots of Complicated Rules
271(5)
Useful Modules
276(1)
File::Find
276(2)
File::Path
278(1)
File::Find::Rule
279(5)
Summary
284(3)
Chapter 10 Sort, Map, And Grep
287(28)
Basic Sorting
288(1)
Sorting Alphabetically
288(1)
Sorting Numerically
289(1)
Reverse Sorting
290(1)
Complex Sort Conditions
290(2)
Writing a sort Subroutine
292(1)
Sorting and Unicode Fun!
293(4)
Map and grep
297(1)
Using grep
298(5)
Using map
303(2)
Aliasing Issues
305(1)
Trying to Do Too Much
306(1)
Trying to Be Clever
307(1)
Putting It All Together
308(1)
Schwartzian Transform (aka decorate, sort, undecorate)
308(2)
Guttman-Rosler Transform
310(1)
Summary
311(4)
Chapter 11 Packages And Modules
315(38)
Namespaces and Packages
316(5)
Use Versus require
321(2)
Package Variables
323(3)
Version Numbers
326(1)
Subroutines in Other Packages
327(1)
Exporting
327(3)
Naming Conventions
330(5)
BEGIN, UNITCHECK, CHECK, INIT, and END
335(1)
BEGIN blocks
336(1)
END Blocks
337(1)
INIT, CHECK, and UNITCHECK Blocks
337(1)
Plain Old Documentation (POD)
338(2)
Documentation Structure
340(1)
Headings
340(1)
Paragraphs
341(1)
Lists
341(1)
Verbatim
342(1)
Miscellaneous
342(2)
Creating and Installing Modules
344(1)
Creating a Simple Module
344(5)
Makefile.PL or Module::Build?
349(1)
Summary
349(4)
Chapter 12 Object Oriented Perl
353(46)
What Are Objects? The Ævar the Personal Shopper
354(1)
Three Rules of Perl OO
355(1)
Class Is a Package
355(1)
An Object Is a Reference That Knows Its Class
356(2)
A Method Is a Subroutine
358(13)
Objects - Another View
371(1)
Using TV::Episode
371(3)
Subclassing
374(1)
Using TV::Episode::Broadcast
375(4)
Class Versus Instance Data
379(2)
A Brief Recap
381(1)
Overloading Objects
381(4)
Using UNIVERSAL
385(2)
Understanding Private Methods
387(6)
Gotchas
393(1)
Unnecessary Methods
393(1)
"Reaching Inside"
394(1)
Multiple Inheritance
394(3)
Summary
397(2)
Chapter 13 Moose
399(40)
Understanding Basic Moose Syntax
400(2)
Using Attributes
402(3)
Using Constructors
405(3)
Understanding Inheritance
408(1)
Taking Care of Your Moose
409(4)
Advanced Moose Syntax
413(1)
Using Type Constraints
414(3)
Using Method Modifiers
417(3)
Understanding and Using Roles
420(5)
Exploring MooseX
425(3)
Rewriting Television::Episode
428(5)
Moose Best Practices
433(1)
Use namespace::autoclean and Make Your Class Immutable
434(1)
Never Override new()
434(1)
Always Call Your Parent BUILDARGS Method
434(1)
Provide Defaults if an Attribute is Not Required
434(1)
Default to Read-Only
434(1)
Put Your Custom Types in One Module and Give Them a Namespace
435(1)
Don't Use Multiple Inheritance
435(1)
Always Consume All Your Roles at Once
435(1)
Summary
436(3)
Chapter 14 Testing
439(42)
Basic Tests
440(1)
Using Test::More
440(2)
Writing Your Tests
442(1)
Understanding the prove Utility
443(1)
Understanding Test::More Test Functions
444(1)
Using ok
445(1)
Using is
445(3)
Using like
448(1)
Using is_deeply
449(1)
Using SKIP
450(1)
Using TODO
450(1)
Using eval {}
451(1)
Using use_ok and require_ok
452(1)
Working with Miscellaneous Test Functions
453(4)
Using Other Testing Modules
457(1)
Using Test::Differences
457(2)
Using Test::Exception
459(1)
Using Test::Warn
460(1)
Using Test::Most
460(1)
Understanding xUnit Style Using Testing
461(1)
Using Test::Class
461(2)
A Basic Test Class
463(4)
Extending a Test Class
467(4)
Using Test Control Methods
471(2)
Calling Parent Test Control Methods
473(4)
Summary
477(4)
Chapter 15 The Interwebs
481(42)
A Brief Introduction to HTTP
482(2)
Plack
484(1)
Hello, World!
484(6)
Handling Parameters
490(2)
Templates
492(4)
Handling POST Requests
496(4)
Sessions
500(11)
Web Clients
511(1)
Extracting Links from Web Pages
512(2)
Extracting Comments from Web Pages
514(1)
Filling Out Forms Programmatically
515(5)
Summary
520(3)
Chapter 16 Databases
523(22)
Using the DBI
524(1)
Connecting to a Database
524(3)
Using SQLite
527(1)
Using DBD::SQLite
527(6)
Selecting Basic Data
533(1)
Using SELECT Statements
533(3)
Using Bind Parameters
536(3)
Inserting and Updating Data
539(1)
Creating Transactions
540(1)
Handling Errors
541(1)
Summary
542(3)
Chapter 17 Plays Well With Others
545(22)
The Command Line
546(1)
Reading User Input
546(2)
Handling Command-Line Arguments
548(3)
perlrun
551(5)
Other Programs
556(1)
Running an External Program
556(3)
Reading Another Program's Output
559(1)
Writing to Another Program's Input
560(2)
STDERR
562(3)
Summary
565(2)
Chapter 18 Common Tasks
567(44)
Using CSV Data
568(1)
Reading CSV Data
569(1)
Writing CSV Data
570(1)
Understanding Basic XML
571(1)
Reading CSV Data
572(4)
Writing CSV Data
576(4)
Handling Dates
580(1)
Using the DateTime Module
580(1)
Using Date::Tiny and DateTime::Tiny
581(6)
Understanding Your Program
587(1)
Using the Debugger
587(7)
Profiling
594(10)
Perl::Critic
604(4)
Summary
608(3)
Chapter 19 The Next Steps
611(44)
What Next?
612(1)
What This Book Covers
612(1)
What This Book Leaves Out
613(1)
Understanding Object-Relational Mappers
613(1)
Understanding DBIx::Class
614(1)
Understanding Basic DBIx::Class Usage
614(4)
Understanding the Pros and Cons of an ORM
618(6)
Using DBIx::Class::Schema::Loader
624(1)
Using the Template Toolkit
625(1)
Why Use Templates?
625(1)
An Introduction to Template Toolkit
626(8)
Using Catalyst to Build Apps
634(1)
The Beauty of MVC
635(1)
Setting Up a Catalyst Application
635(6)
Using Catalyst Views
641(2)
Using Catalyst Models
643(3)
Using Catalyst Controllers
646(2)
CRUD: Create, Read, Update, and Delete
648(3)
Summary
651(4)
Appendix: Answers To Exercises 655(40)
Index 695
Curtis "Ovid" Poe has specialized in Perl since 2000. He is an author, a regular guest speaker at conferences across Europe and the United States, and he wrote the test harness that currently ships with the Perl language.

"This is not your everyday Beginning Perl book. Not only does Ovid provide splendid coverage of Perl's basics and best practices, he also covers modern Perl techniques and modules, where Perl's real power lies. [ It] is like being given Batman's utility belt: you have everything you need to do truly amazing things. If Perl were a shark, this book would teach you how to outfit it with lasers." —Paul Fenwick, Perl Training Australia

Wrox Beginning guides are crafted to make learning programming languages and technologies easier than you think, providing a structured, tutorial format that will guide you through all the techniques involved.