Special Edition Using Perl 5 for Web Programming


With a review by Tom Christiansen, one of the original Perl founders, this is one of the most comprehensive books on the market, covering Perl OOP structure, socket programming, HTML conversions, building Internet search utilities, and more!
  • Focuses heavily on the Windows NT version of Perl
  • Provides coverage of advanced Perl topics, including object-oriented programming with...
See more details below
Available through our Marketplace sellers.
Other sellers (Hardcover)
  • All (18) from $1.99   
  • New (4) from $2.00   
  • Used (14) from $1.99   
Sort by
Page 1 of 1
Showing 1 – 3 of 4
Note: Marketplace items are not eligible for any BN.com coupons and promotions
Seller since 2009

Feedback rating:



New — never opened or used in original packaging.

Like New — packaging may have been opened. A "Like New" item is suitable to give as a gift.

Very Good — may have minor signs of wear on packaging but item works perfectly and has no damage.

Good — item is in good condition but packaging may have signs of shelf wear/aging or torn packaging. All specific defects should be noted in the Comments section associated with each item.

Acceptable — item is in working order but may show signs of wear such as scratches or torn packaging. All specific defects should be noted in the Comments section associated with each item.

Used — An item that has been opened and may show signs of wear. All specific defects should be noted in the Comments section associated with each item.

Refurbished — A used item that has been renewed or updated and verified to be in proper working condition. Not necessarily completed by the original manufacturer.

BRAND NEW BOOK, includes sealed CD. 100% satisfaction is guaranteed!


Usually ships in 1-2 business days

  • Canadian
  • International
  • Standard, 48 States
  • Standard (AK, HI)
  • Express, 48 States
  • Express (AK, HI)
Seller since 2008

Feedback rating:


Condition: New

Ships from: fallbrook, CA

Usually ships in 1-2 business days

  • Standard, 48 States
  • Standard (AK, HI)
Seller since 2014

Feedback rating:


Condition: New
Brand new.

Ships from: acton, MA

Usually ships in 1-2 business days

  • Standard, 48 States
  • Standard (AK, HI)
Page 1 of 1
Showing 1 – 3 of 4
Sort by
Sending request ...


With a review by Tom Christiansen, one of the original Perl founders, this is one of the most comprehensive books on the market, covering Perl OOP structure, socket programming, HTML conversions, building Internet search utilities, and more!
  • Focuses heavily on the Windows NT version of Perl
  • Provides coverage of advanced Perl topics, including object-oriented programming with Perl
  • CD-ROM includes the complete electronic version of the book in HTML format, as well as two other Que books

A Web server scripting tutorial that overviews Perl and the Common Gateway Interface (CGI). Examines the Perl language's structure, syntax, and constructs. Explains form processing. data storage, page display, search constructs, dynamic pages, and interactive HTML content. Contains security and site administration information. Explains database/Web server interaction and scripting issues. Contains a 175 page reference section summarizing Perl functions and syntax. The accompanying CD-ROM includes the HTML format version of this publication, the book's source code, Perl versions 4 & 5, and HTML formatted publications Using CGI and Using HTML, Second Edition. Very good. For more Perl information we recommend the definitive Perl reference Programming Perl, Second Edition (covers Perl 5) and the very good publication Instant Web Scripts with CGI/PERL, w/CD-ROM a good example-oriented guide based on Selena Sol's Public Domain Script Archive.

Read More Show Less

Product Details

  • ISBN-13: 9780789706591
  • Publisher: Que
  • Publication date: 10/1/1996
  • Series: Using... Ser.
  • Edition number: 1
  • Pages: 609
  • Product dimensions: 7.33 (w) x 9.06 (h) x 1.73 (d)

Table of Contents

1 Perl Overview
2 Introduction to CGI
3 Advanced Form Processing and Data Storage
4 Advanced Page Output
5 Searching
6 Using Dynamic Pages
7 Dynamic and Interactive HTML Content in Perl and CGI
8 Understanding Basic User Authentication
9 Understanding CGI Security
10 Site Administration
11 Database Interaction
12 Database Application Using CGI
13 Special Variables
14 Operators
15 Function List
16 Subroutine Definition
App. A Perl Acquisition and Installation
App. B Perl Web Reference
App. C What's on the CD?
Read More Show Less


The Web
You've surely heard of the Internet and the World Wide Web by now. If you haven't, now may be a good time to put this book back on the shelf and check out one of the many introductory volumes about the Web instead. After you've used the Web for a while, you may find yourself producing Web pages for other people to use; then would be a good time to come back to this book.
The term intranet, which doesn''t have the same currency as Internet, refers to a network along the lines of the Internet but internal to a corporation and usually protected from the Internet by a firewall. Web servers dominate on these so-called local Internets just as much as they do on the real thing, so this book is as relevant to them as it is to the global network.

If you''re a Web user, terms such as URI, httpd, and browser are old hat to you. You're familiar with Apache, CERN, and proxy; and you''re at least on nodding terms with the likes of CGI, MIME, and socket. (Don''t worry if you've never heard of Mozilla.) Still, just so that there''s no confusion, review the following list:

  • The Internet is the whole thing - the computers, the network infrastructure, the protocols, and the bizarre sense of community that arises spontaneously when 20 million people get together on a desktop.
  • The World Wide Web is an interlinked collection of servers on the Internet that provide information. This information can consist of text, graphics, executable programs, or anything else that can be stored on disk.
  • A World Wide Web server is one of the servers that form the World Wide Web. HTTP servers, FTP servers, and Gopher servers are all examples of Web servers.
  • An HTTP server is a machine or a process (depending on the context) that serves up HTTP data. This data can include text, images, and binary data (if proper MIME encoding is used).
That list is a roundabout way of saying that a Web server and an HTTP server are not necessarily the same thing, and that this book is about Perl in the context of HTTP servers. We''ll refer to Web servers frequently throughout the book, because the concept is often useful for dealing with the presentation of information on the Web. Also, Web is in the book''s title because it reads better than Using Perl for HTTP Server Programming.

The Internet is getting to be an awfully big place. According to Network Wizards (http://www.nw.com), there appeared to be more than 9 million Internet hosts at the time when this book was written. Estimating the number of people who use the Internet is notoriously difficult, but it''s generally recognized that more than 20 million people now use the Internet on a regular basis. This figure includes people who have electronic mail or FTP access, as well as those who are fortunate enough to have the type of connection and equipment that allow them to use the Web. Not all of the 20 million Internet users have access to the Web, but the number who have Web access is growing faster than the overall number who have Internet access. Recently, publicity about the Web has become so overwhelming that many people think of the Internet purely as being the Web. Also, for the first time, many people are purchasing PCs for the primary purpose of Web access. The Web, in short, is in an upward growth spiral that shows no sign of leveling out before the end of the century.

Apart from the sheer scale of growth, some interesting facts about the development of the Web are beginning to emerge. All the facts presented in this section arise from a curious combination: the lack of rules about what you can do on the Web, and the very strict rules about how you do it.
One interesting fact is that people are astonishingly creative in thinking up uses for the system. Live share prices as a Web-based screen saver, political agitation and petition collection, merchandise sales via the Web, multimedia resumes ... there''s just no telling what people will get up to, given enough bandwidth.
Another interesting fact is that in spite of its scale (which suggests a homogenizing influence), the Web appears to act as an agent of diversity. Small companies, community groups, and schools are there along with the big corporations. The number of languages represented on the Web is growing, not declining. This broad spectrum of interests may be due, in part, to the increasing ease with which organizations can establish an effective Web presence.

On the Web
Perhaps the most important trend, from the point of view of this book, is that the Web is becoming a much more dynamic place. Dynamic doesn''t just mean that pages are now being replaced on a regular basis (although they are, which is a welcome change from the time when Web pages tended to be less recent than printed matter). The word also doesn''t just mean that the people who produce the Web every day have a dynamic, creative demeanor (although many of them do, which is why we have such wonders as Robotman, at http://www.unitedmedia.com/comics/robotman). Dynamic means that much more of the information available on the Web is generated live when a user requests it. Databases are searched, files are counted, text is translated, and so on. This trend is part of the excitement of using the Web now. An interesting page is all very well, but if the page is static, you probably won''t visit it again except to see whether it has been updated. If, however, the content of the page depends on the passage of time, on your input, or on the input of other users, you are much more likely to come back. The trend is also a big part of the excitement of developing on the Web now. Web server management involves much more than writing pages of deathless HTML; a good deal of real-time programming goes on, too. this programming is real-time in the sense that the programs react to external events and produce output that is used there and then. You could also say that the programming is real-time because the pressure for rapid development and new features means that the code is often edited while it is in use.

Perl and the Web
Which brings us to Perl. Perl is the ideal development language for Web server work, for many reasons. Chapter 1, "Perl Overview," discusses the nature of Perl in much more detail; the following sections concentrate on the reasons why Perl suits Web server development.

Rapid Development
Many Web server programming projects are high-level rather than low-level, which means that they tend not to involve bit-level manipulations, direct operatiiig-systeiii calls, or interaction with the server hardware. Instead, the projects focus on reading from files, reformatting the output, and writing to standard output - the browser, in other words. The programmer does not need (or want) to get involved in the details of how file handles and buffers are manipulated, how memory is allocated, and so on.
High-level tasks such as file manipulation and text formatting are exactly the kind of tasks at which Perl excels. You can tell Perl to slurp in the contents of a file and display it on the user''s browser with all new lines replaced by tabs, as follows:
while ( ) {s/\n/\t/; print; }
Don''t worry about the details of that code example until you read Chapter 1, "Perl Overview. Just notice two things:
The code is short.
The code is almost legible even if you don''t know any Perl, especially if you are familiar with C.
In a nutshell, the secret of rapid development is writing small amounts of powerful code without having to consider awkward issues of syntax at every step. Perl is pithy; a little Perl code goes a long way. In terms of programming languages, that statement usually means that the code is difficult to read and painful to write. Although Larry Wall (the author of Perl) says that Perl is functional rather than elegant, most programmers quickly find that Perl code is very readable and that becoming fluent in writing it is not difficult. The fact that Perl is pithy rather than terse makes it especially appropriate for the high-level macro operations that are typically required in Web development.
As it happens, Perl is quite capable of handling some fairly low-level operations, too-handling operating-system signals and talking to network sockets, for example. But for most Web programming purposes, that level of detail is just not needed.

Compiler and Interpreter
A program can''t achieve anything by itself; to carry out its work, it needs to be fed to either a compiler or an interpreter. Each of these entities has its advantages, as follows:
A compiler takes a program listing and generates an executable file. This executable file can then be executed is many times as necessary, copied to other computers, and so on without the need for the program source. Not distributing source code helps keep program details confidential. Because the compiler runs only one time, it can afford to take its time about generating the executable code. As a result, compilers tend to perform elaborate optimization on the program code, with the result that the executable code runs efficiently.
An interpreter examines a program listing line by line, carrying out the tasks required by each line as it reads the listing. A separate compilation stage is unnecessary; when the program has been written, it can be executed without delay, making for a rapid development cycle.
Compilers and interpreters each have relative advantages and disadvantages. Compiled code takes longer to prepare, but it runs fast, and your source stays secret. Interpreted code gets up and running quickly, but it isn''t as fast as interpreted code; in addition, you need to distribute the program source if you want to allow other people to run your programs.
Which of these categories describes Perl? Perl is special in this regard: it''s a compiler that thinks it's an interpreter. Perl compiles program code into executable code before running it, so an optimization stage occurs, and the executable code runs quickly. Perl doesn''t write this code to a separate executable file, however; instead, it stores the code in memory and then executes it. Therefore, Perl combines the rapid development cycle of an interpreted language with the efficient execution of compiled code.
The corresponding disadvantages of compilers and interpreters also apply to Perl. The need to compile the program each time it is run makes for slower startup than a purely compiled language provides, and developers are required to distribute source code to users. In practice, however, these disadvantages are not too limiting, for the following reasons:
The compilation phase is extremely fast, so you''re unlikely to notice much lag between the invocation of a Perl script and the start of execution.
Perl scripts on a Web server are executed by the server on behalf of the users, not by the users themselves. This arrangement means that the scripts can be hidden from prying eyes while they''re being used by anyone on the Internet.
In summary, Perl is compiled behind the scenes for rapid execution, but you can treat it as though it were interpreted. Tweaking your HTML is easy; just edit the code, and allow the users to run it. But is that good programming practice? Hey, that''s one for the philosophers.
Note - Because Perl code is truly compiled, it has no such thing as a run-time syntax error (unless you get into the realm of generating Perl code on-the-fly and then executing it). This fact is important when you consider that your server is your interface to the outside world; sudden script crashes caused by minor typos are not what you want people to see. Quick execution of a Perl script tells you whether all the syntax in the script is valid. Of course, that''s no guarantee that your code won't disgrace you for some other reason.

Perl was not designed in the abstract, it was written to solve a particular problem, and it evolved to serve an ever-widening set of real-world problems.
Perl''s developer could have expanded the language to handle these tasks by adding more and more keywords and operators - by making the language bigger. Instead, the core of the Perl language started small and became more refined as time went on. In some ways, the language actually contracted. The number of reserved words in Perl 5.0 is actually less than half the number in Perl 4.0.
This situation reflects an awareness that Perl''s power lies in its unique combination of efficiency and flexibility Perl itself has frown slowly and thoughtfully, usually in ways that allow for enhancements and extensions to be added rather than hard-wired in. This approach has been critical in the development of Perl''s extensibility over time, as the following section explains.

Much of the growth in Perl as a platform has come by way of the increasing use of libraries (Perl 4.0) and modules (Perl 5.0). These add-on elements (discussed in more detail in Chapter 1, "Perl Overview," and in Chapter 16, "Subroutine Definition") essentially allow developers to write self-contained portions of Perl code that can be slotted into a Perl application. The addons range from fairly high-level utilities (such as a module that adds HTML tags to text) to lowlevel, down-and-dirty development tools (such as code profilers and debuggers).
The capability to use extensions such as these is a remarkable advance in the development of a fairly slick language, and it has helped to fuel the growth in Perl use. Perl developers can easily share their work with others, and the arrival of objects in Perl 5.0 makes structured design fairly methodologies possible for Perl applications. The language has come of age without losing any of its flexibility or raw power.
Note - Appendix B, ''Perl Web Reference,' describes several Perl libraries and modules. Browse through the appendix to get the flavor of the modules that are available. Also, the CD-ROM that comes with this book contains a collection of freely available modules, along with documentation that explains how to use them. For details, see Appendix C, ''What's on the CD?"

Web Server Work
Web servers generate huge amounts of HTML. The M stands for markup, and you need a great deal of it to make your Web pages more exciting than the average insurance contract. Using HTML is a fiddly business, though; problems can easily arise if tags are misplaced or misspelled. Perl is a good choice of language to look after the details for you while you get on with the big picture, especially if you call on the object-oriented capabilities of Perl 5.0.
Of particular interest to many Web server managers is the fact that Perl works well with standard UNIX DBM files. Also, support for proprietary databases is growing rapidly.These considerations are significant if you plan to allow users to query database material over the Web.

Security is a major issue on the Internet in general. If you use Perl for scripting on your Web server, you can easily prevent users from trying to sneak commands through for the server to execute on their behalf. Also, an excellent Perl 5.0 module called pgpperl (also known as Penguin) allows your server to use public-key cryptography techniques to protect sensitive data from eavesdroppers. For more information on pgpperl, see Appendix B, "Perl Web Reference."

Many people on the Web already use Perl. Going with the flow isn''t always the best approach, but Perl has grown with the Web. A great deal of experience is available on the Web if you need advice. The Perl developers are keenly aware of Web issues as they add to Perl, and they have built many Perl modules with the Web in mind.

Perl Summary
You want to use Perl for many reasons, including the fact that it is small, efficient, flexible, and robust. Perl is particularly well suited for Web development work, in which text output is a major preoccupation. And if these reasons aren''t quite enough, consider this one: Perl is free.

The Structure of This Book
By now, you should be sold on the idea of using Perl for Web development work. This book tells you how to do so, using the following structure:
Part I, "Perl and CGI," starts with a crash course in Perl and an explanation of the Common Gateway Interface (CGI).
Chapter 1, "Perl Overview," describes the Perl language, and introduces the syntax and constructs that will be used throughout the book.
Chapter 2, "Introduction to CGI," explains how Perl programs on a Web server talk to the outside world and how data is sent from a browser to a Perl program running on a server.
Part II, "Form Processing, Data Storage, and Page Display," explains how to use Perl and CGI to interact with text files and UNIX databases on the server.
Chapter 3, "Advanced Form Processing and Data Storage," deals with the issues involved in accepting data from a user who is using HTML forms. The chapter also explains how to deal with the data when it arrives.
Chapter 4, "Advanced Page Output," is about using forms to manage server-based data.
Chapter 5, "Searching," explains how Perl can be used to facilitate database or flat-file searches on the server.
Chapter 6, "Using Dynamic Pages," describes some techniques that you can use to keep your pages current and make them respond to external events.
Chapter 7, "Dynamic and Interactive HTMI Content in Perl and CGI," covers the issues involved in using Perl to translate documents to and from HTML on-the-fly.
Part III, "Authentication and Site Administration," deals with server management issues: protecting scripts that run on your server and coping with server log files.
Chapter 8, "Understanding Basic User Authentication," explains the security issues involved in allowing users to run programs on a Web server. In addition, the chapter describes how to manage server access rights.
Chapter 9, "Understanding CGI Security," shows how a CGI wrapper script can allow users on the server to make their own programs available on the server without compromising server Security.
Chapter 10, "Site Administration," is about how Perl can be used both online and offline to help you with day-to-day server management tasks.
Part IV,"Databases and Internal Web Sites,"explains how your Perl scripts can interact with commercial databases and how to use Perl to manipulate a database within your organization.
Chapter 11, "Database Interaction," is about the rapidly expanding field of Web-based databases and how Perl can be used to manage the interaction between the user and the database.
Chapter 12, "Database Application Using CGI," discusses the issues involved in running a database on a Web server inside your company but allowing external users to have limited access.
Part V, "Reference," has all the details on Perl syntax and functions.
Chapter 13, "Special Variables," describes all the tokens that have special meaning in Perl and give it its unique flavor.
Chapter 14, "Operators," lists the Perl operators and describes how they operate.
Chapter 15, "Function List," is a detailed reference to Perl''s built-in functions.
Chapter 16, "Subroutine Definition," explains how to use subroutines, libraries, and modules to organize your programs and to produce reusable code.
The appendixes explain where to get Perl and associated resources, both on the Internet and on the CD-ROM that accompanies this book.
Appendix A, "Perl Acquisition and Installation," explains where to get Perl and how to install it on your UNIX or Windows NT machine.
Appendix B, "Perl Web Reference," describes many of the Perl modules, add-ons, and related tools that are available on the Internet and on the CD-ROM that comes with this book.
Appendix C, "What''s on the CD?", provides some pointers to help you get off to a quick start with our Perl collection.
Throughout the book, we''ll use snippets of Perl code and sometimes entire listings for illustration. All code listed in this mantier is available on the CD-ROM.
Note - This book (like life in general) is too short to describe how to do all the things in the list for all the HTTP servers and browsers that currently exist. For the sake of manageability, we''ll concentrate on the Apache server and the Netscape browser, which were the most popular devices of their types at the time when this book was written. When significant differences exist between these products and other popular products, we''ll draw your attention to that fact.

Read More Show Less

Customer Reviews

Be the first to write a review
( 0 )
Rating Distribution

5 Star


4 Star


3 Star


2 Star


1 Star


Your Rating:

Your Name: Create a Pen Name or

Barnes & Noble.com Review Rules

Our reader reviews allow you to share your comments on titles you liked, or didn't, with others. By submitting an online review, you are representing to Barnes & Noble.com that all information contained in your review is original and accurate in all respects, and that the submission of such content by you and the posting of such content by Barnes & Noble.com does not and will not violate the rights of any third party. Please follow the rules below to help ensure that your review can be posted.

Reviews by Our Customers Under the Age of 13

We highly value and respect everyone's opinion concerning the titles we offer. However, we cannot allow persons under the age of 13 to have accounts at BN.com or to post customer reviews. Please see our Terms of Use for more details.

What to exclude from your review:

Please do not write about reviews, commentary, or information posted on the product page. If you see any errors in the information on the product page, please send us an email.

Reviews should not contain any of the following:

  • - HTML tags, profanity, obscenities, vulgarities, or comments that defame anyone
  • - Time-sensitive information such as tour dates, signings, lectures, etc.
  • - Single-word reviews. Other people will read your review to discover why you liked or didn't like the title. Be descriptive.
  • - Comments focusing on the author or that may ruin the ending for others
  • - Phone numbers, addresses, URLs
  • - Pricing and availability information or alternative ordering information
  • - Advertisements or commercial solicitation


  • - By submitting a review, you grant to Barnes & Noble.com and its sublicensees the royalty-free, perpetual, irrevocable right and license to use the review in accordance with the Barnes & Noble.com Terms of Use.
  • - Barnes & Noble.com reserves the right not to post any review -- particularly those that do not follow the terms and conditions of these Rules. Barnes & Noble.com also reserves the right to remove any review at any time without notice.
  • - See Terms of Use for other conditions and disclaimers.
Search for Products You'd Like to Recommend

Recommend other products that relate to your review. Just search for them below and share!

Create a Pen Name

Your Pen Name is your unique identity on BN.com. It will appear on the reviews you write and other website activities. Your Pen Name cannot be edited, changed or deleted once submitted.

Your Pen Name can be any combination of alphanumeric characters (plus - and _), and must be at least two characters long.

Continue Anonymously

    If you find inappropriate content, please report it to Barnes & Noble
    Why is this product inappropriate?
    Comments (optional)