Lee | Beginning Perl | E-Book | www.sack.de
E-Book

E-Book, Englisch, 464 Seiten

Lee Beginning Perl


3rd ed
ISBN: 978-1-4302-2794-6
Verlag: Apress
Format: PDF
Kopierschutz: 1 - PDF Watermark

E-Book, Englisch, 464 Seiten

ISBN: 978-1-4302-2794-6
Verlag: Apress
Format: PDF
Kopierschutz: 1 - PDF Watermark



This is a book for those of us who believed that we didn't need to learn Perl, and now we know it is more ubiquitous than ever. Perl is extremely flexible and powerful, and it isn't afraid of Web 2.0 or the cloud. Originally touted as the duct tape of the Internet, Perl has since evolved into a multipurpose, multiplatform language present absolutely everywhere: heavy-duty web applications, the cloud, systems administration, natural language processing, and financial engineering. Beginning Perl, Third Edition provides valuable insight into Perl's role regarding all of these tasks and more. Commencing with a comprehensive overview of language basics, you'll learn all about important concepts such as Perl's data types and control flow constructs. This material sets the stage for a discussion of more complex topics, such as writing custom functions, using regular expressions, and file input and output. Next, the book moves on to the advanced topics of object-oriented programming, modules, web programming, and database administration with Perl's powerful database interface module, DBI. The examples and code provided offer you all of the information you need to start writing your own powerful scripts to solve the problems listed above, and many more. Whether you are a complete novice or an experienced programmer, Beginning Perl, Third Edition offers an ideal guide to learning Perl.

James Lee is a hacker and open-source advocate based in Illinois. He holds a master's degree from Northwestern University, and he can often be seen rooting for the Wildcats during football season. As founder of Onsight, Lee has worked as a programmer, trainer, manager, writer, and open-source advocate. Lee coauthored Hacking Linux Exposed, Second Edition, as well as Open Source Web Development with LAMP. He enjoys hacking Perl and has written many articles on Perl for Linux Journal. Lee also enjoys developing software for the Web, reading, traveling and, most of all, playing with his kids, who are too young to know why dad's favorite animals are penguins and camels.

Lee Beginning Perl jetzt bestellen!

Autoren/Hrsg.


Weitere Infos & Material


1;Contents at a Glance;5
2;Contents;6
3;About the Author;17
4;About the Technical Reviewers;18
5;Acknowledgments;19
6;Introduction;20
7;First Steps in Perl;31
7.1;Programming Languages;31
7.2;Our First Perl Program;32
7.3;Character Sets;38
7.4;Escape Sequences;38
7.5;Number Systems;39
7.6;The Perl Debugger;41
7.7;Summary;41
7.8;Exercises;42
8;Scalars;43
8.1;Types of Data;43
8.2;Operators;52
8.3;Variables;68
8.4;Variable Interpolation;76
8.5;Two Miscellaneous Functions;80
8.6;Summary;82
8.7;Exercises;82
9;Control Flow Constructs;83
9.1;The if Statement;84
9.2;Looping Constructs;96
9.3;The while Loop;96
9.4;Loop Control Constructs;104
9.5;Summary;109
9.6;Exercises;109
10;Lists and Arrays;110
10.1;Lists;110
10.2;Arrays;120
10.3;Summary;143
10.4;Exercises;143
11;Hashes;144
11.1;Creating a Hash;144
11.2;Hash in List Context;148
11.3;Hash in Scalar Context;149
11.4;Hash Functions;150
11.5;Hash Examples;154
11.6;Summary;158
11.7;Exercises;158
12;Subroutines/Functions;160
12.1;Understanding Subroutines;161
12.2;Passing Arguments into Functions;166
12.3;Return Values;168
12.4;Understanding Scope;171
12.5;Some Important Notes on Passing Arguments;176
12.6;Summary;181
12.7;Exercises;181
13;Regular Expressions;182
13.1;What Are They?;182
13.2;Working with Regexes;199
13.3;Summary;205
13.4;Exercises;206
14;Files and Data;207
14.1;Filehandles;207
14.2;Reading with the Diamond;213
14.3;Writing to Files;220
14.4;Opening Pipes;224
14.5;File Tests;228
14.6;Summary;233
14.7;Exercises;233
15;String Processing;235
15.1;Character Position;235
15.2;String Functions;236
15.3;Summary;241
15.4;Exercises;241
16;Interfacing to the Operating System;243
16.1;The %ENV Hash;243
16.2;Working with Files and Directories;245
16.3;Executing External Programs;253
16.4;There’s More;256
16.5;Summary;256
16.6;Exercises;257
17;References;258
17.1;What Is a Reference?;258
17.2;The Life Cycle of a Reference;259
17.3;Using References for Complex Data Structures;271
17.4;Summary;282
17.5;Exercises;282
18;Modules;283
18.1;Why Do We Need Them?;283
18.2;Creating a Module;284
18.3;Including Other Files with use;286
18.4;Exporters;291
18.5;The Perl Standard Modules;293
18.6;CPAN;304
18.7;Summary;312
19;Object-Oriented Perl;313
19.1;OO Buzzwords;313
19.2;An Example;318
19.3;Rolling Your Own Classes;321
19.4;Do You Need OO?;339
19.5;Summary;341
19.6;Exercises;341
20;Introduction to CGI;342
20.1;We Need a Web Server;343
20.2;Writing CGI Programs;343
20.3;Introducing CGI.pm;350
20.4;CGI.pm Methods;357
20.5;Processing Form Data;358
20.6;Let’s Play Chess!;363
20.7;What We Did Not Talk About;372
20.8;Summary;373
20.9;Exercises;373
21;Perl and DBI;374
21.1;Introduction to Relational Databases;374
21.2;We Need an SQL Server—MySQL;378
21.3;Introduction to DBI;393
21.4;Perl, DBI, and CGI;403
21.5;What We Didn’t Talk About;410
21.6;Summary;411
21.7;Exercises;411
22;Exercise Solutions;412
22.1;Chapter 1;412
22.2;Chapter 2;412
22.3;Chapter 3;414
22.4;Chapter 4;415
22.5;Chapter 5;416
22.6;Chapter 6;418
22.7;Chapter 7;420
22.8;Chapter 8;421
22.9;Chapter 9;423
22.10;Chapter 10;424
22.11;Chapter 11;425
22.12;Chapter 13;429
22.13;Chapter 14;430
22.14;Chapter 15;431
23;Index;434



Ihre Fragen, Wünsche oder Anmerkungen
Vorname*
Nachname*
Ihre E-Mail-Adresse*
Kundennr.
Ihre Nachricht*
Lediglich mit * gekennzeichnete Felder sind Pflichtfelder.
Wenn Sie die im Kontaktformular eingegebenen Daten durch Klick auf den nachfolgenden Button übersenden, erklären Sie sich damit einverstanden, dass wir Ihr Angaben für die Beantwortung Ihrer Anfrage verwenden. Selbstverständlich werden Ihre Daten vertraulich behandelt und nicht an Dritte weitergegeben. Sie können der Verwendung Ihrer Daten jederzeit widersprechen. Das Datenhandling bei Sack Fachmedien erklären wir Ihnen in unserer Datenschutzerklärung.