|
Perl @ Web Programming
Programming Shed : Programmer Store & Resources |
|
|
|
Perl Index - Perl Book : Perl by Example (3rd Edition)
by Ellie Quigley Paperback: 880 pages Publisher: Prentice Hall PTR ISBN: 0130282510; 3rd edition (September 7, 2001) Both a reference and tutorial, this book covers the varieties of Perl and their system and Web applications. Chapters address scripts, printing, names, operators, pattern matching, files, subroutines, libraries, references, databases, interfaces, report writing, CGI, and related topics. An accompanying CD-ROM contains all the source code in the book. Quigley teaches at the University of California at Santa Cruz.Book News, Inc.®, Portland, OR Ingram: Through proven sample programs, professional Perl trainer Ellie Quigley takes readers from their first program to highly sophisticated scripting. Updated for Web developers, the book teaches CGI scripting with Perl. The CD-ROM includes Perl 5 for all leading UNIX platforms, Windows 95 and NT, plus hundreds of code examples. Book Info: This completely updated & revised edition brings you up to the minute with: Complete coverage of Perl 5; Bug fixes to existing versions; Full treatment of CGI scripting. Includes hands-on tutorials, from simple reports to sophisticated Perl scripts. Paper. CD ROM included. DLC: Perl (Computer program language) The publisher, Prentice-Hall ECS: Professional This tutorial/reference is the ideal guide for UNIX professionals who want to (or must) learn Perl as quickly as possible. Perl (Practical Extraction and Report Language) -- a public domain interpreted language used for manipulating text, files, and processes -- combines the best features of many of the UNIX utilities, including grep, awk, sed, tr, shells, and the C programming language. Due to its unique features, Perl has gained popularity recently, and is quickly becoming the preferred programming language of systems administrators. From the Inside Flap About the Author Ellie Quigley is president of Learning Enterprises, LE, a small training/consulting company specializing in teaching UNIX related subjects and writing customized classes for on-site training. The original version of Perl by Example was designed as a Perl Programming class for the University of California, Extension, Santa Cruz, complete with training guide and exercises. Due to the success of the class, this book evolved. She has also authored UNIX Shells by Example, published by Prentice Hall last year. Any comments or questions can be forwarded to Ellie Quigley at Learning Enterprises by e-mail: shellieq@netcom. Acknowledgments I would like to send a special appreciation to Mark Houser, a system administration instructor for Remedy Corporation. Mark, with an MS in computer science, enjoys "extending his systems beyond the ordinary" with tools like Perl. He has always been there to answer questions, and he donated his taintperl database application in Appendix B. Mark's email address is mark.houser@EBay.Sun.COM. I also owe a great deal to Deac Lancaster, a true scholar, co-worker, and good friend. While working for Sun Education, Deac spent many an evening after a long teaching day to guide me patiently through the workings of sockets, message queues, and semaphores. He loaned me his demo C programs, and together we re-wrote them in Perl for this book. Deac is now teaching at Remedy Corporation. Thanks, Deac! John Nouveaux, from Nouveaux Consulting, Santa Rosa, California, has also contributed a number of his Perl programs for the Appendix B in this book. John, an expert network programmer and system administrator, is a consultant and a dynamic teacher, specializing in connectivity issues using tcp/ip and the Internet. Thanks also to Steve Hanson for his system administration work and to George Williams for compiling the CD-ROM and setting up the Web server. Richard Evans, from Sun Microsystems, volunteered his time to test the examples in this book and offered helpful suggestions on how to improve them. Thank you, Richard. Of course, appreciation to my editors, Mark Taub and Patti Guerrieri, for teaching me about the book business and patiently awaiting overdue chapters and correction pages. And to Roberta Harvey, from RAH Consulting, for her technical review and valuable criticism. Thanks to Perl pioneers Larry Wall and Randal L. Schwartz, authors of the following books: Learning Perl by Randal L. Schwartz and Perl Programming by Larry Wall and Randal L. Schwartz. And last, but not least, a huge thanks to all of my students out there who helped me learn Perl and kept it fun. Preface A picture is worth a thousand words, and so is a good example. Perl by Example is organized to teach you Perl from scratch with examples of complete succinct programs. Each line of a script sample is numbered, and important lines are highlighted. The output of the program is then displayed with numbers corresponding to the script numbers. Following the output is a separate explanation for each of the numbered lines. The examples are small and to the point for the topic at hand. Since the backbone of this book was used as a student guide to Perl, the topics are modularized. Each module builds on the previous one with a minimum of forward referencing and a logical progression from one topic to the next. Perl by Example is not just a beginner's guide, but a complete guide to Perl. It covers many aspects of what Perl can do, from regular expression handling, to formatting reports, to interprocess communication. It will teach you about Perl and, in the process, a lot about UNIX. Although some UNIX knowledge will greatly accelerate your learning path, it is not assumed that you are a guru. Anyone reading, writing, or just maintaining Perl programs can greatly profit from this text. Topics such as networking, system calls, IPC, and CGI are designed to save the time it takes to figure out how the functions work, what libraries are needed, and the correct syntax, etc. Now, in this second edition, Perl5 objects and references have been added, and since Perl is the standard for writing CGI scripts for the Internet, there is a chapter to get you started writing your own dynamic Web pages. Perl has a rich variety of functions for handling strings, arrays, the system interface, networking, and more. In order to understand how these functions work, background information concerning the how's, why's, and what for's is provided before demonstrating sample programs that function. This eliminates constantly wading through manual pages and other UNIX books to understand what is going on, what the arguments mean, and what the function actually does. The Appendices contain a complete list of functions and definitions, command line switches, debugging options, special variables, Perl translators and sample scripts, including a fully functional, annotated Perl program using taintperl and interfacing with a database application. I have been teaching now for the past 30 years and am committed to understanding how people learn. Having taught Perl now for over a year, I find that many new Perlers get frustrated when trying to teach themselves how to program in Perl. I, too, experienced frustration when first tackling Perl. So I wrote a book to help myself learn and to help my students, and now to help you. In my book you will not only learn Perl, you will also save yourself a great deal of time. From the Back Cover: The grand-daddy of all Perl guides-now updated for Perl on all key platforms. • All new edition of the classic hands-on guide to Perl • Extensive new coverage of CGI for Web development • Now with full cross-platform coverage, including Linux, UNIX, Windows NT, and Macintosh • Packed with examples, all on the enclosed CD-ROM, along with up-to-date Perl software for Windows users • Best-selling author Ellie Quigley is Silicon Valley's leading Perl instructor! The Perl tutorial and reference that started it all is now available in a thoroughly revised edition that covers all flavors of Perl and all system and Web applications. Best-selling author Ellie Quigley combines her deep background and UNIX chops with up-to-the-minute experience teaching Perl and shell programming on all platforms. This translates into hands-on examples that all users can put straight to work whether scripting Web applications or managing networks. Filled with practical information on Perl development, Perl by Example, Third Edition covers names and operators, regular expressions, file handles, libraries, references, reporting, and more. Highlights include: • Support for Perl on Unix, Linux, Windows, and Macintosh • CGI Web development with CGI.pm • Perl DBI database integration The user-friendly style offers one-to-one comparisons with other popular languages and utilities and a massive reference section for easy look-up. The hands-on tutorials are great for beginners, but also offer handy refreshers for experienced programmers looking to update their skills.About the CD-ROM The CD-ROM includes all source code from the book, plus new Perl distributions for Windows. About the Author: Ellie Quigley is the creator of the world's number one interactive Perl course, Perl Multimedia Cyber Classroom, and author of Linux Shells by Example and Unix Shells by Example, Second Edition. Her courses at Sun Microsystems and the University of California at Santa Cruz Extension Program are legendary throughout the Silicon Valley. Excerpted from Perl By Example by Ellie Quigley. Copyright © 2001. Reprinted by permission. All rights reserved. Preface Last week, I was teaching Perl at the UCSC extension in Santa Clara, California to a group of professionals coming from all around the Bay Area. I always ask at the beginning of the class, "and so why do you want to learn Perl?". The responses vary from, "Our company has an auction site on the Web and I'm the webmaster. I need to maintain the CGI programs that process our orders, " or "I work in a genetics research group at Stanford and have to deal with tons of data . . . we're looking for the gene that causes arteriosclerosis . . . oh and I heard that if I learn Perl, I won't have to depend on programmers to do this," or "I work at a local bank and we use Perl to interface with our big Oracle databases," or "I'm a UNIX/NT system administrator and our boss has decided that all future admin scripts should be written in Perl," or "I'm designing a Web page for my wife who wants to do Taro card readings for profit," or "I just got laid off and heard that it's an absolute must to have Perl on my resume." And I am always amazed at the variety of people who show up: engineers, scientists, geneticists, meteorologists, managers, salespeople, programmers, techies, hardware guys, students, stockbrokers, administrators of all kinds, librarians, authors, bankers, artists-you name it. Perl does not exclude anyone. Perl is for everyone and it runs on everything. No matter who you are, I think you'll agree, a picture is worth a thousand words, and so is a good example. Perl by Example is organized to teach you Perl from scratch with examples of complete succinct programs. Each line of a script example is numbered, and important lines are highlighted in bold. The output of the program is then displayed with line numbers corresponding to the script line numbers. Following the output is a separate explanation for each of the numbered lines. The examples are small and to the point for the topic at hand. Since the backbone of this book was used as a student guide to a Perl course, the topics are modularized. Each chapter builds on the previous one with a minimum of forward referencing and a logical progression from one topic to the next. There are exercises at the end of the chapters. You will find all of the examples on the CD at the back of the book. They have been thoroughly tested on a number of major platforms. Perl by Example is not just a beginner's guide, but a complete guide to Perl. It covers many aspects of what Perl can do, from regular expression handling, to formatting reports, to interprocess communication. It will teach you about Perl and, in the process, a lot about UNIX and Windows. Since Perl was originally written on and for UNIX systems, some UNIX knowledge will greatly accelerate your learning path, but it is not assumed that you are by any means a guru. Anyone reading, writing, or just maintaining Perl programs can greatly profit from this text. Topics such as networking, system calls, IPC, and CGI are designed to save the time it takes to figure out how the functions work, what libraries are needed, the correct syntax, etc. This third edition also covers Perl objects, references, and CGI, as well as a new chapter to show you how to use the popular CGI.pm module by Lincoln Stein. Perl has a rich variety of functions for handling strings, arrays, the system interface, networking, and more. In order to understand how these functions work, background information concerning the hows, whys, and what fors is provided before demonstrating functional sample programs. This eliminates constantly wading through manual pages and other books to understand what is going on, what the arguments mean, and what the function actually does. The appendices contain a complete list of functions and definitions, command line switches, special variables, popular modules, the Perl debugger; a fully functional, object-oriented CGI program; some other helpful scripts; and a helpful HTML tutorial. I have been teaching now for the past 30 years and am committed to understanding how people learn. Having taught Perl now for over eight years, all over the world, I find that many new Perlers get frustrated when trying to teach themselves how to program. I found that most people learn best from succinct little examples and practice. So I wrote a book to help myself learn and to help my students, and now to help you. As Perl has grown, so have my books. This latest third edition, includes information for those using Windows as well as different flavors of UNIX. In my book you will not only learn Perl, you will also save yourself a great deal of time. At least that's what my students and readers have told me. You be the judge. Customer Reviews Reviewer: Reader from San Diego, CA As someone who learns best by seeing and doing rather than reading abstract theory and explanation, this book is a God-send! Each example is broken down line by line with clear explanations so you can understand exactly what each programming element does. It's the first book to really show me a tangible example of object-oriented Perl that isn't easier as a standard subroutine. This is not a cookbook, but clarifies many programming language features that the Camel book discusses on a "more elevated" plane. If you read advanced programming language code for fun and didn't get lost anywhere in the Camel book, this approach may bore you. But if you're wanting to fill in all the holes from kludging together all those scripts by Matt Wright, this is for you! Highly recommended! Reviewer: A reader This book is exactly what its title claims: a collection of hundreds of well-indexed and clearly written examples of the PERL language. It's by no means a comprehensive source for those who want to learn PERL. The targeted audience is apparently those who have a thorough knowledge of UNIX and a working background of languages similar to PERL, such as C and shell scripts. This book makes quite clear many of the idiosyncrasies of PERL via straightforward examples, and served my need for a quick explanation of "how to do it in PERL" Reviewer: A. M. Main from Virginia Beach, VA United States Ellie Quigley delivers again. Her latest version of Perl by Example has been completely updated to include the latest features of the most fun programming language in existence. The new format is even easier to read than before. Anyone programming in a Linux environment will be particularly impressed with her treatment of Linux shells. As in previous books, Quigley's examples are always short and to the point. She explains each and every line of code in her examples leaving nothing to the imagination. I've been teaching Perl at the corporate and college level for four years, and would recommend this book over all others to people who are trying to learn the language for the first time, or to those who just want a complete reference at their side. This book's a keeper! Reviewer: A reader from Australia I've tried to learn perl several times before with different books, manuals and tutorials all unsuccessfully. It wasn't until I started using this book that I really 'got' perl. Each element of the language is explained in clear and simple terms. As a result, I'm now finding perl quite accessible and even fun, something that I would have sworn was not possible before. |
|
|
© 2005-2006, Programming Shed
|