Willkommen, schön sind Sie da!
Logo Ex Libris

Beginning Perl

  • E-Book (pdf)
  • 744 Seiten
(0) Erste Bewertung abgeben
Bewertungen
(0)
(0)
(0)
(0)
(0)
Alle Bewertungen ansehen
Everything beginners need to start programming with PerlPerl is the ever-popular, flexible, open source programming language that ... Weiterlesen
E-Books ganz einfach mit der kostenlosen Ex Libris-Reader-App lesen. Hier erhalten Sie Ihren Download-Link.
CHF 25.00
Download steht sofort bereit
Informationen zu E-Books
E-Books eignen sich auch für mobile Geräte (sehen Sie dazu die Anleitungen).
E-Books von Ex Libris sind mit Adobe DRM kopiergeschützt: Erfahren Sie mehr.
Weitere Informationen finden Sie hier.

Beschreibung

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.



Autorentext
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.

Klappentext
Learn the Perl skills employers are looking for

As one of the most influential programming languages in the world, Perl is used extensively in web development, data processing, and system administration. Whether you're new to Perl or looking to strengthen your real-world skills, this resource covers what you need to handle scenarios. Drawing on his decade-plus of Perl experience, Curtis "Ovid" Poe begins with a brief review of the basics of Perl, then moves on to demonstrate how you actually use Perl in the workplace. Additionally, hands-on exercises, invaluable advice, and real-world examples all contribute to making this book essential reading.

Beginning Perl:

  • Explains how to work with data using Perl's built-in functions
  • Shows how to handle Unicode in Perl
  • Details the basics of control flow and handling references, files, and directories
  • Devotes a full chapter to Object-Oriented Perl as well as a chapter on Moose
  • Provides a comprehensive introduction to automated testing
  • Touches on Catalyst, DBIx::Class usage, and other popular modules
  • Technical edit by chromatic, a well-known developer, prolific writer, and author of several Perl titles

"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.com

Programmer Forums
Join our Programmer to Programmer forums to ask and answer programming questions about this book, join discussions on the hottest topics in the industry, and connect with fellow programmers from around the world.

Code Downloads
Take advantage of free code samples from this book, as well as code samples from hundreds of other books, all ready to use.

Read More
Find articles, ebooks, sample chapters and tables of contents for hundreds of books, and more reference resources on programming topics that matter to you.

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.



Zusammenfassung
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.



Inhalt
INTRODUCTION xxiii

CHAPTER 1: WHAT IS PERL? 1

Perl Today 2

Getting Perl 3

Working with Non-Windows Platforms: perlbrew 4

Using Windows 6

The Perl Community 8

IRC 8

PerlMonks 9

Perl Mongers 9

StackOverflow 9

Using perldoc 11

Understanding the Structure of perldoc 11

Getting Started with perldoc 11

Using Tutorials and FAQs 12

Using the perldoc -f function 14

Using a Terminal Window 14

Using the Command Line 15

Creating a Work Directory 16

Creating Hello, World! 18

Writing Your First Program 18

Shebang Lines 21

Summary 22

CHAPTER 2: UNDERSTANDING THE CPAN 25

CPAN and METACPAN 26

Finding and Evaluating Modules 27

Downloading and Installing 29

CPAN Clients 33

Using the CPAN.pm Client 33

Using the Cpanm Client 35

PPM 36

CPAN::Mini 36

Summary 39

CHAPTER 3: VARIABLES 41

What Is Programming? 42

A Few Things to Note Before Getting Started 43

strict, warnings, and diagnostics 43

The my Function 43

Sigils 44

Identifiers 45

Scalars 46

Strings 47

Numbers 51

Arrays 53

Breaking Down the Code 54

Accessing Elements 55

Iterating over Arrays 58

Hashes 58

Accessing Elements 59

Iterating Over Hashes 60

Adding Data to Hashes 60

Slices 61

Array Slices 62

Hash Slices 62

Context 63

Scalar Context 63

List Context 64

Scope 67

my Variables 67

Package Variables 69

Strict, Warnings, and Diagnostics 72

strict 74

warnings 74

diagnostics 75

Working Without a Net 76

Perl's Built-in Variables 78

$_ 78

%ENV 79

@ARGV 79

Other Special Variables 80

Summary 81

CHAPTER 4: WORKING WITH DATA 83

Using Scalars 84

Working with Strings 85

Using String Operators 94

Scalar::Util 97

Numeric Builtins 98

Bitwise Operators 103

Understanding Booleans 103

Assignment Operators 108

Precedence and Associativity 109

Array and List Functions 111

Built-in Array Functions 111

List::Util 116

Built-in Hash Functions 116

delete() 116

exists() 117

keys() 117

values() 117

each() 117

Scoping Keywords 119

my() 119

local() 119

our() 120

state() 120

Summary 121

CHAPTER 5: CONTROL FLOW 125

Using the if Statement 126

Understanding Basic Conditionals 126

else/elsif/unless 128

The Ternary Operator ?: 131

for/foreach loops 132

Arrays 132

Lists 135

C-Style 136

Using while/until Loops 142

Lists 143

last/next/redo/continue 144

Labels 146

Statement Modifiers 147

Types of Statement Modifiers 147

do while/do until 149

given/when 151

Basic Syntax 151

The Switch Module 153

Summary 154

CHAPTER 6: REFERENCES 157

References 101 158

Array References 158

Hash References 159

Anonymous References 160

Other References 163

Working with References 166

Debugging 166

Copying 169

Slices 172

Summary 173

CHAPTER 7: SUBROUTINES 175

Subroutine Syntax 176

Argument Handling 177

Multiple Arguments 178

Named Arguments 179

Aliasing 181

State Variables (Pre- and Post-5.10) 181

Passing a List, Hash, or Hashref? 184

Returning Data 186

Returning True/False 186

Returning Single and Multiple Values 188

wantarray 189

FAIL! 190

Wake Up! Time to Die! 191

carp and croak 192

eval 192

evalGotchas 194

Try::Tiny 195

Subroutine References 196

Existing Subroutines 196

Anonymous Subroutines 197

Closures 197

Prototypes 200

Argument Coercion 200

More Prototype Tricks 202

Mimicking Builtins 204

Forward Declarations 206

Prototype Summary 207

Recursion 209

Basic Recursion 209

Divide and Conquer 210

Memoization 211

Things to Watch For 215

Argument Aliasing 215

Scope Issues 216

Doing Too Much 216

Too Many Arguments 217

Summary 217

CHAPTER 8: REGULAR EXPRESSIONS 219

Basic Matching 220

Quantifiers 221

Escape Sequences 223

Extracting Data 226

Modifiers and Anchors 228

Character Classes 231

Grouping 232

Advanced Matching 235

Substitutions 235

Lookahead/Lookbehind Anchors 236

Named Subexpressions (5.10) 238

Common Regular Expression Issues 241

Regexp::Common 241<...

Produktinformationen

Titel: Beginning Perl
Autor:
EAN: 9781118221877
ISBN: 978-1-118-22187-7
Digitaler Kopierschutz: Adobe-DRM
Format: E-Book (pdf)
Herausgeber: Wrox
Genre: Programmiersprachen
Anzahl Seiten: 744
Veröffentlichung: 29.08.2012
Jahr: 2012
Untertitel: Englisch
Dateigrösse: 6.4 MB
Zuletzt angesehen
Verlauf löschen