Workshop

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 ...

Get Sams Teach Yourself Perl in 24 Hours now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.