Workshop

 <  Day Day Up  >  

Quiz

1:

The param function in an array context with no arguments returns

  1. undef

  2. The number of form elements

  3. A list of the form element names

2:

The differences between the POST and GET methods are transparent if you use the CGI module.

  1. True

  2. False

3:

The password field input type on an HTML form is secure because it obscures the password before sending it.

  1. False

  2. True

Answers

A1:

c. param , without arguments, returns a list of the element names from the submitted form.

A2:

a. True.

A3:

a. False. With normal HTTP and CGI, all form fields are transmitted in cleartext and are not secure. The password field input type just hides the field as you type it.

Activities

  • Spice up the help desk form a bit. Add timestamps to each entry and maybe some color on the output.

  • Challenge: The display() function prints the entries in the help desk form starting with the oldest. Change the display() function to print the newest entries first.

 <  Day Day Up  >  


SAMS Teach Yourself Perl in 24 Hours
Sams Teach Yourself Perl in 24 Hours (3rd Edition)
ISBN: 0672327937
EAN: 2147483647
Year: 2005
Pages: 241

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net