Databases Reference
In-Depth Information
exit;
}
my $Name = "$1";
print $Name;
}
The square brackets and braces have very different meanings in regular expressions.
The square brackets around [a-z] mean “any character in the range from a to z,” while
the braces around {0,9} means “where the preceding item appears zero to nine times.”
Resources
• For more on the CGI module, read the documentation at http://search.cpan.org/
dist/CGI.pm/CGI.pm .
• For more on web scripting security, read the WWW security FAQ at http://www
.w3.org/Security/faq .
• Regular expressions are a powerful tool. There are many good topics on regular
expressions, but try to choose one that focuses on Perl (there are slight variations
in the regular expression syntax used in different tools). We recommend you read
Mastering Regular Expressions by Jeffrey E. F. Friedl (O'Reilly).
Exercises
1. How is a Perl CGI script different from a command-line one?
2. What does the Perl CGI module do?
3. Write a regular expression that matches any word starting with “tele”; the match
should not be case-sensitive.
 
Search WWH ::




Custom Search