CGI Programming 101: Chapter 2: Perl Variables

Full text for this chapter may be found here.


Name Description
text.html Full Text for Chapter 2
scalar-cgi.html Print Scalar Variables Program (source code)
scalar.cgi Print Scalar Variables Program (example)
colors-cgi.html Print Hash Variables Program (source code)
colors.cgi Print Hash Variables Program (example)


Errata

Array Slices - on p. 18 and again in the reference on p. 26, the book says an array slice is $colors[1..2]. It should be @colors[1..2]. (@ refers to multiple values, $ is a single value.)


All text and scripts are excerpted from CGI Programming 101, 2nd Edition, and are copyright © 2004, 1999 by Jacqueline D. Hamilton. Unauthorized reproduction of this material is prohibited.

 


Table of Contents | Order the Book | CGI101 Home