Examples Home to Cookwood Press

These Web pages contain all the examples from the book Perl and CGI for the World Wide Web:Visual QuickStart Guide, Second Edition written by Elizabeth Castro.

  • First, you can download a single stuffed and binhexed file for Macintosh or zipped file for Windows with all of the Perl/CGI scripts together with all of the auxiliary HTML files.

    Once you've downloaded the files, you can look at them with any text editor and then test them on your own system. Sorry about the filenames. I've created a table that you can use to figure out which files go with which examples.

  • The second system is to click the arrow next to Examples to expand the list of chapters, and then scroll down to the chapter you're interested in. Then click the section title for the topic you want to look at. The script will appear in the right-hand frame (here, where you're reading this right now), and you'll find the script's actual code, as well as a link either directly to the script or to a Web page that uses the script. You can then test the script (they are live!) on my server with different input in order to see how they work.

    If you want to test changes to the scripts, you'll have to copy the scripts to your own server and make the changes (and tests) there.

    Not all sections have examples. If there's no link, that means there is no example for that section. In that case, just consult the corresponding section in the book where you'll most often find a complete explanation.

The all-important parsing subroutine (used throughout the book and explained in detail in Appendix A) is also available for download for either Macintosh or Windows.

You can also download the examples from Peachpit's companion site to this book.

If you have any questions or comments about the examples, please check the Perl and CGI VQS FAQ first. If your question is not answered there, you might want to post a question to my Question and Answer board. As a last option, you can e-mail me directly. In any case, I'll do my best to help you out.

Copyright 1999 by Elizabeth Castro. All Rights Reserved.