With more than a million dedicated programmers, Perl has proven to be the best computing language for the latest trends in computing and business. While other languages have stagnated, Perl remains fresh, thanks to its community-based development model, which encourages the sharing of information among users. This tradition of knowledge-sharing allows developers to find answers to almost any Perl question they can dream up.
And you can find many of those answers right here in Perl Hacks. Like all books in O'Reilly's Hacks Series, Perl Hacks appeals to a variety of programmers, whether you're an experienced developer or a dabbler who simply enjoys exploring technology. Each hack is a short lesson--some are practical exercises that teach you essential skills, while others merely illustrate some of the fun things that Perl can do. Most hacks have two parts: a direct answer to the immediate problem you need to solve right now and a deeper, subtler technique that you can adapt to other situations. Learn how to add CPAN shortcuts to the Firefox web browser, read files backwards, write graphical games in Perl, and much more.
For your convenience, Perl Hacks is divided by topic--not according to any sense of relative difficulty--so you can skip around and stop at any hack you like. Chapters include:
Productivity Hacks
User Interaction
Data Munging
Working with Modules
Object Hacks
Debugging
Whether you're a newcomer or an expert, you'll find great value in Perl Hacks, the only Perl guide that offers something useful and fun for everyone.
About this product: A great book for beginning programmers who want to learn Perl. Filled with concrete examples and, yes, by using this book you will be able to write good Perl code on your own in 21 days. But no perlson is an island, and there is no single book that covers Perl completely, so we recommend that you also get Programming Perl, which is better at providing the language specifications, and, in fact, was written by the author of Perl.
About this product: The Perl Pocket Reference provides a complete overview of the Perl programming language, all packed into a convenient, carry-around booklet. It is updated for Perl 5.8, and covers a summary of Perl syntax rules, a complete list of operators, built-in functions, and standard library modules, all with brief descriptions. Also included are the newest Perl features, such as enhanced regular expressions, multithreading, the Perl compiler, and Unicode support. The Perl Pocket Reference, 4th Edition, is the perfect companion to the authoritative books on Perl published by O'Reilly & Associates: Programming Perl, Learning Perl, and the Perl Cookbook. This pocket reference will never make it to the bookshelf--dog-eared and well worn, it will remain within arms reach of the keyboard or tucked in a back pocket, where it will be referred to on a daily basis.
“I picked up a copy of JavaScript by Example over the weekend and wanted to thank you for putting out a book that makes JavaScript easy to understand. I’ve been a developer for several years now and JS has always been the “monster under the bed,” so to speak. Your book has answered a lot of questions I’ve had about the inner workings of JS but was afraid to ask. Now all I need is a book that covers Ajax and Coldfusion. Thanks again for putting together an outstanding book.”
–Chris Gomez, Web services manager, Zunch Worldwide, Inc.
“I have been reading your UNIX® Shells by Example book, and I must say, it is brilliant. Most other books do not cover all the shells, and when you have to constantly work in an organization that uses tcsh, bash, and korn, it can become very difficult. However, your book has been indispensable to me in learning the various shells and the differences between them…so I thought I’d email you, just to let you know what a great job you have done!”
“I have been learning Perl for about two months now; I have a little shell scripting experience but that is it. I first started with Learning Perl by O’Reilly. Good book but lacking on the examples. I then went to Programming Perl by Larry Wall, a great book for intermediate to advanced, didn’t help me much beginning Perl. I then picked up Perl by Example, Third Edition–this book is a superb, well-written programming book. I have read many computer books and this definitely ranks in the top two, in my opinion. The examples are excellent. The author shows you the code, the output of each line, and then explains each line in every example.”
“Ellie Quigley has written an outstanding introduction to Perl, which I used to learn the language from scratch. All one has to do is work through her examples, putz around with them, and before long, you’re relatively proficient at using the language. Even though I’ve graduated to using Programming Perl by Wall et al., I still find Quigley’s book a most useful reference.”
–Casey Machula, support systems analyst, Northern Arizona University, College of Health and Human Services
“When I look at my bookshelf, I see eleven books on Perl programming. Perl by Example, Third Edition, isn’t on the shelf; it sits on my desk, where I use it almost daily. When I bought my copy I had not programmed in several years and my programming was mostly in COBOL so I was a rank beginner at Perl. I had at that time purchased several popular books on Perl but nothing that really put it together for me. I am still no pro, but my book has many dog-eared pages and each one is a lesson I have learned and will certainly remember. “I still think it is the best Perl book on the market for anyone from a beginner to a seasoned programmer using Perl almost daily.”
–Bill Maples, network design tools and automations analyst, Fidelity National Information Services
“We are rewriting our intro to OS scripting course and selected your text for the course. It’s an exceptional book. The last time we considered it was a few years ago (second edition). The debugging and system administrator chapters at the end nailed it for us.”
–Jim Leone, Ph.D., professor and chair, Information Technology, Rochester Institute of Technology
“Quigley’s book acknowledges a major usage of PHP. To write some kind of front end user interface program that hooks to a back end MySQL database. Both are free and open source, and the combination has proved popular. Especially where the front end involves making an HTML web page with embedded PHP commands. “Not every example involves both PHP and MySQL. Though all examples have PHP. Many demonstrate how to use PHP inside an HTML file. Like writing user-defined functions, or nesting functions. Or making or using function libraries. The functions are a key idea in PHP, that take you beyond the elementary syntax. Functions also let you gainfully use code by other PHP programmers. Important if you are part of a coding group that has to divide up the programming effort in some manner.”
–Dr. Wes Boudville, CTO, Metaswarm Inc.
The World’s Easiest Perl Tutorial–Fully Updated!
Perl by Example, Fourth Edition, is the easiest, most hands-on way to learn Perl. Legendary Silicon Valley programming instructor Ellie Quigley has thoroughly updated her classic to deliver the skills and information today’s Perl users need most–including all-new coverage of MySQL database programming and a Perl QuickStart designed to get experienced users up and running fast.
Quigley illuminates every technique with focused, classroom-tested code examples, detailed line-by-line explanations, and real program output. This exceptionally clear, easy-to-understand book takes you from your first Perl script to database-driven applications. It’s the only Perl book you’ll ever need!
New in this edition:
Perl programming QuickStart: makes first-time Perl programmers productive in just twenty pages
All-new chapter on using the Perl DBI with the MySQL database–plus an easy SQL primer to quickly get you started programming any database
New introductions to Perl in biology (bioinformatics) and to mod_perl, a Perl interpreter embedded in the Apache server, which allows you to create fast, dynamic content; manage the Apache server; authenticate users; and much more
Completely updated:
Includes many new and completely rewritten code examples
Contains fully revised CGI coverage for building dynamic Web sites with Perl
Covers modern Perl 5.8 concepts and principles–and provides a great foundation for Perl 6
More than 30,000 sysadmins, power users, and developers have used previous editions of Perl by Example
to become expert Perl programmers. With Perl by Example, Fourth Edition,you can, too–even if you’re
completely new to Perl. After you’ve become an expert, you’ll turn to this book constantly as the best
source for reliable answers, solutions, and code.
About the CD-ROM:
The CD-ROM includes all code and files for this book’s hundreds of example scripts.
About this product: "Beginning Perl, Second Edition is a well-named text that starts exactly where it claims…This book is a fine place to start." — James Edward Gray II, Slashdot contributor
"...there are great examples, and projects assigned after each chapter to help you really understand and remember how to code in Perl." — Mark Spritzler, JavaRanch Bartender
"This book is a well-conceived introduction to Perl in tutorial form... A Very Good Book. :) :) :) :) of 5." — George Woolley of Oakland Perl Mongers
"The Perl (this book) teaches is strong industry-standard Perl that is…considered best practice." — Jack Herrington, Editor, Code Generation Network Originally created as a powerful text processing tool, Perl has since evolved into a multi-purpose, multi-platform language capable of implementing a variety of tasks such as system administration, CGI and network programming, XML processing, and more. Beginning Perl, Second 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, we move on to the advanced topics of object oriented programming, modules, CGI 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, Second Edition offers an ideal guide to learning Perl.
The Classic Guide to Solving Real-World Problems with Perl-Now Fully Updated for Perl 5 and Today’s Best Idioms!
For years, experienced programmers have relied on Effective Perl Programming to discover better ways to solve problems with Perl. Now, in this long-awaited second edition, three renowned Perl programmers bring together today’s best idioms, techniques, and examples: everything you need to write more powerful, fluent, expressive, and succinct code with Perl 5.
Nearly twice the size of the first edition, Effective Perl Programming, Second Edition,offers everything from simple tips to full-fledged solutions, rules of thumb to common pitfalls and how to avoid them. You won’t just learn the right ways to use Perl: you’ll learn why these approaches work so well.
New coverage in this edition includes
Nine all-new chapters on CPAN: databases, debugging, distributions, external processes, files and filehandles, “Production Perl,” testing, and Unicode
Systematically updated examples reflecting today’s best idioms
More coverage of application and user interface techniques
More hands-on exercises and solutions: great for individual programmers and training environments
You’ll find it all here: strings, numbers, lists, arrays, strictures, namespaces, regular expressions, subroutines, references, distributions, inline code, warnings, Perl::Tidy, data munging, Perl one-liners, and a whole lot more. Every technique is organized in the same items format that helped make the first edition so convenient and popular.
About this product: Perl & LWP sets out to unwrap the Library for the Web in Perl (LWP), which is a collection of modules that make it easier to access and pick apart Web pages (and FTP-accessible files, and outgoing e-mail messages) from within your Perl programs. The book succeeds wonderfully, not only in conveying the technical aspects of LWP programming, but in making clear the fun of doing work that's very well suited to Perl. Sean Burke assumes that his readers know something about Perl, albeit not much, and a similar amount about HTML. He does a great job of explaining how LWP functions fit into Perl programs, and how you can use them to make reference to Internet resources far more easily than before.
Burke's narrative takes the form of a guided tour in which he introduces his readers to aspects of the LWP modules one by one. His tone is generally straightforward (sharp commentary alternates with brief code listings, with occasional passages of reference material), but there's sometimes an undercurrent of exuberance that makes the reader want to get going with his or her own programming right away. Overall, the emphasis is on teaching both LWP and Perl itself to the extent necessary to do LWP work. Because of the concise and nicely indexed code modules, though, you'll find this book useful as a reference after you're under way with LWP. --David Wall
Topics covered: How to program with LWP and Perl itself. All of LWP's strong points--including HTML parsing (with tokens and trees as well as with regular expressions), HTML generation and modification, manipulation of HTML forms, and the operation of spiders--are covered. This book has more of a tutorial tone than any similar reference material on the Internet.
About this product: Perl is an enormously popular scripting language that runs on many different operating systems, including Windows, Linux, Unix, and Mac OS X, and provides programmers with a robust and powerful programming language that is easy to learn, yet sufficiently complex to tackle just about any job. As such, it's a perfect programming language for those new to programming to learn. Perl Programming for the Absolute Beginner has been designed to teach you how to develop Perl scripts and to help you become an effective programmer, and teaches concepts through the creation of simple games. Whether you are an experienced programmer looking to learn another language or you are reading this book as the first step in your programming career, you will find that this book's games-based teaching approach makes the learning process a lot more enjoyable. You will also find that the knowledge you'll gain from developing Perl-based games will provide you with a strong foundation from which you can branch out and tackle more complex challenges.
Learn Perl programming quickly and easily with 24 one-hour lessons in Sams Teach Yourself Perl in 24 Hours. The book's step-by-step lessons teach you the basics of Perl and how to apply it in web development and system administration. Plus, the third edition has been updated to include five chapters on new technologies, information on the latest version of Perl, and a look ahead to Perl 6. Sams Teach Yourself Perl in 24 Hours focuses on real-world development, teaching you how to:
Effectively use Perl for large development projects using Perl modules
Use Perl for data processing
Utilize Perl as a "glue" language with other programming languages
About this product: Perl in a Nutshell strives to be a perfect set of socket tools for the active Perl programmer. By and large, it succeeds, providing endless and well-thought-out lists and tables on the language's modules, flags, and extensions. The authors briefly address basic learner's questions--such as the difference between a hash and an array--but these concepts are not the purpose of the book. (Those new to Perl would be better off with others in the O'Reilly Perl series, such as Learning Perl, while programmers making the switch to Perl can pick up the nuances of the language with Programming Perl.) This book is pure Perl reference, briefly covering Perl/Tk (for GUI Perl programs on Unix and Windows 95/NT) and Perl for Win 32.
The authors do start at the very beginning, and even in a self-described "desktop quick reference" find the time to comment on less urgent--but still interesting--Perl-related matters (like how to find online help amidst the "Perl culture"). The format of the book makes sections on topics such as Perl debugging easily understandable, illustrating how to make an interactive and timesaving environment.
Of particular convenience is the outstanding section on the standard Perl modules. A four-page "quick look" allows you to easily scan through short definitions of all the modules and find the entry you're looking for. An index with full definitions for each module follows, showing you how to use each module and providing a more in-depth explanation (and often, examples). Perl in a Nutshell concludes--as you might expect--with an excellent and well-cross-referenced index. --Jennifer Buckendorff