|
Perl @ Web Programming
Programming Shed : Programmer Store & Resources |
|
|
|
Perl Index - Perl Book : A Little Book on Perl
by Robert W. Sebesta Textbook Binding: 190 pages Dimensions (in inches): 0.38 x 9.20 x 7.02 Publisher: Prentice Hall ISBN: 0139279555; 1st edition (December 28, 1999) A computer science professor at the U. of Colorado introduces this programming language of increasing significance in software development. Includes examples of Perl for systems administration, networking, and other applications, and chapter-end exercises. Book Info: Meets the growing academic market need for Perl books. Attempts to target experienced programmers whether that experience comes from professional programming or from the first two courses in a degree program in computer science. Softcover. DLC: Perl (Computer program language) From the Inside Flap: This is a book on the widely used programming language, Perl. It includes both descriptions of the features of the language, and how they can be used to write useful programs. As is usually the case with books on programming, the examples are small and are designed to illustrate one or a few language capabilities. Larger, more complex programs often drown the features the book is trying to show, just by their size and structure. The goal of the book is to provide a clear and concise description of Perl for someone who has programmed in some other programming language and wants to learn to use Perl. In many ways, Perl is similar to other programming languages; in some other ways, it is very different. We point out, whenever it is relevant, the advantages Perl offers over alternative languages. Perl has been for some time the most widely used UNIX system administration language. It is now also the most popular scripting language for writing Common Gateway Interface (CGI) programs. In recent years, Perl has begun to replace C for many smaller programming tasks, especially if large files of text must be processed. Because of these varied applications of the language, there is now a large number of Perl users. Due to the dramatic rise in popularity of the World Wide Web and, consequently, college courses that cover various aspects of it, including CGI programming, there is now an emerging academic market for Perl books. However, most, if not all, currently available books on Perl were written for the professional programmer. This book attempts to target experienced programmers, whether that experience has come from professional programming or in the first two courses in a degree program in computer science or a closely related field. Perl is neither small nor simple. It is a complicated combination of the features and capabilities of previous languages, such as sed, awk, and C, along with a few new ideas of its own. Although Perl is powerful, it is relatively easy to learn enough of the language to write programs that describe significant processing, although the programs themselves are rather small. This book is neither a comprehensive reference book nor a tutorial. Reference books about languages contain all of the details of the language, but usually in a form that is difficult to read. It is difficult to learn a programming language from such a book; it is like trying to learn English by studying a book on English grammar. On the other hand, tutorial books on programming languages often aim too low-they assume the reader knows little about programming languages and programming. Seasoned programmers, both professional and from collegiate experience, find such books boring and tedious, for they too often waste several paragraphs on the obvious. Our intention is for this book to be between these two models. It will not cover every detail of Perl, nor will it provide an introduction to computers, programming, or programming languages. It is not for those who want to become Perl experts; they will still need a Perl reference book. On the other hand, it is not for those who want to learn just a bit about Perl to enable them to write (and read) a few relatively small and simple programs. Those people will want a brief tutorial that leaves out all of the advanced features. Because the book is aimed at professional programmers and college students who have had at least two courses in programming, it gets to the point quickly, with little discussion of background topics such people should already know. The book will not assume that the reader knows awk or C, or even anything about UNIX. Of course, prior knowledge of awk or C will make learning Perl much easier. We have tried to make the book platform independent. Most Perl constructs work the same way on all platforms, including UNIX, Windows, and Macintosh. In those cases where there are differences, we point them out to the reader. One of the unique features of this book is the sample program that appears in Chapter 1, before any details of Perl have been discussed. This is not a "hello world" program-it actually does something useful. It is followed by a brief line-by-line explanation of its statements. We hope this example will motivate the reader with both the power and brevity of Perl. It provides the reader with a quick look at a complete program, without first dragging him or her though a tedious discussion of the basics of Perl. The book includes many code segments. Each of the 10 chapters has at least one complete program. The book does not contain descriptions of all of the Perl functions-these can be found on Web pages to which the book will refer. The book will not focus on UNIX system administration; rather, it will concentrate on Perl as a programming tool, which can be used for a variety of tasks. Because we believe that the number of PC Perl users is growing, we will not spend a great deal of time with UNIX-particular details at the expense of those PC users. The programs and code segments in this book were developed and tested using Perl 5. Note that when we say "Perl" we mean the language and when we say "perl," we mean the Perl language-processing system (a compiler and an interpreter). The Book's Contents: The first chapter provides some overview of the purposes and origins of Perl. It also provides an introduction to what CGI programming is. Most importantly, it includes an example of a Perl program, including a brief description of each of its statements. Chapter 2 describes the small-scale features of Perl, covering enough constructs to allow small programs to be written. Chapter 3 describes most of the control statements. Chapter 4 covers Perl's arrays, which are more flexible and powerful than those of other popular programming languages. Chapter 5 describes hashes (which are data structures for storing keyed table information) and references (which provide some of the benefits of pointers without their inherent dangers). The anatomy of Perl's functions is the topic of Chapter 6, including some of the predefined functions. The powerful pattern-matching facilities of Perl are described in Chapter 7, which includes many small fragments of code that illustrate their power and flexibility. Files, file tests, and formats are described in Chapter 8. Chapter 9 provides the information required to write CGI programs in Perl, including the use of the convenient CGI. pm module. Included in Chapter 9 are several complete sample CGI programs. Finally, Chapter 10 has brief descriptions of six advanced topics of Perl that do not fit nicely into any of the previous chapters. Among these are how other programs can be launched from Perl programs, how a Perl program can communicate with other computers, and how graphical interfaces can be added to Perl programs using Tk.To the Instructor. This book is meant to support a one- or two-semester, or junior level. The reader is expected to have had as a minimum an introductory course in programming and a course in data structures, or their equivalents in industrial experience. The book is also designed to be used as a supplement in courses on programming the World Wide Web. For short courses, the last two chapters could be skipped. For longer courses, the last two chapters could be covered and perhaps given further attention through supplemental material on CGI and some of the advanced aspects of Perl. To the Professional. Perl is a programming language of growing significance in the world of software development. Many professionals should learn it, so that they can correctly recognize applications for which it is the best language choice and so that they can use it in those areas in which it has become virtually essential: CGI and systems administration. This book could be used in self-taught mode, although some instruction should be helpful. From the Back Cover: Perl is a programming language of growing significance in the world of software development. A Little Book on Perl meets that growing academic market need for Perl books. This book attempts to target experienced programmers, whether that experience has come from professional programming or from the first two courses in a degree program in computer science. Neither a comprehensive reference book nor a tutorial, this book lands somewhere in the middle of these two models. The reader's advantage is a new model-no need to have prior knowledge of awk or C, or even anything about UNIX-since the contents of the book do not depend on any particular computer platform. • Provides some overview of the purposes and origins of Perl • Independent of UNIX or Windows • An example program in Chapter 1 provides the reader with a quick introduction to the power of Perl and the compactness of Perl programs • This book includes many code segments, concentrating on Perl as a programming tool • Covers enough constructs to allow reader to write significant programs • Includes Perl's arrays, which are more flexible and powerful than those of other popular programming languages • Describes hashes-data structures for storing keyed table information • Describes references, which allow users to define their own data structures • Supports the information required to write CGI programs in Perl, including use of the CGI.pm module • Concludes with six advanced topics of Perl and how other programs can be launched from Perl programs • Provides a Companion Website with supplemental material to accompany the text prenhall/sebesta About the Author: DR. SEBESTA received his Ph.D. in Computer Science from Penn State University. His research is in the areas of compiler design and programming language design. He has been teaching computer science for over twenty-eight years. He is a member of ACM and the Computer Society of IEEE. Robert Sebesta currently teaches Perl programming, among other subjects, at the University of Colorado at Colorado Springs. Customer Reviews Reviewer: A reader from Washington, DC USA This book is great for those who already know how to program in C or C++. I am a C++ programmer and I needed to quickly learn the basics of Perl and this book was great. It's short, concise, and to the point - it got me up and running really fast. Within a few days, I was writing useful small scripts and ready to move on to some more advanced materials, including the O'reilly books on Perl. I think only one addition would make this book even better: have a list of resources (other books, web sites) at the end of each chapter to find more information about certain topics. For instance, the chapter on CGI programming can point readers to Lincoln Stein's book on CGI.pm for more detailed information. Reviewer: A reader from Texas We are using this book in my Perl class, and the general consensus is that this book is mediocre at best. Much of this comes from the fact that we are required to do the exercises at the back of the book, which, among other things, sometimes require you know information that has not yet been covered. Also some of the chapters do a poor job at explaining things, especially the functions chapter, in which even the examples in the chapter did not work when compiled. In its defense(short as it may be), however, the fact that it is short and concise made Perl more easy to handle. Reviewer: G Martin from seattle, wa USA I first started learning perl with the Camel/Llama books from O'Reilly - but did not like the style [or prehaps I lack a sense of humor?] and gave up. A 'Little Book on Perl' is just that. I skimmed over it for 30mins on the bus each morning and after 3 days felt I knew enough to throw away my awk and shell scripts and use perl in anger. This being a small book is a great advantage for someone familar with programming - you get to know the basic features of the language fast. There are however some irritations - the opening example script has typos, and some of the page numbers are incorrect - my copy has the debugger chapter included twice. Still it is the best perl book I have seen. |
|
|
© 2005-2006, Programming Shed
|