Differences between version 2 and predecessor to the previous major change of perlfaq9(1).
Other diffs: Previous Revision, Previous Author, or view the Annotated Edit History
Newer page: | version 2 | Last edited on Tuesday, June 4, 2002 12:22:34 am | by perry | Revert |
Older page: | version 1 | Last edited on Tuesday, June 4, 2002 12:22:34 am | by perry | Revert |
@@ -43,9 +43,9 @@
HTTP Spec
http://www.w3.org/pub/WWW/Protocols/HTTP/
HTML Spec
http://www.w3.org/TR/REC-html40/
-http://www.w3.org/pub/WWW/MarkUp/
+http://www.w3.org/pub/WWW/!
MarkUp/
CGI Spec
http://www.w3.org/CGI/
CGI Security FAQ
http://www.go2net.com/people/paulp/cgi-security/safe-cgi.txt
@@ -83,9 +83,9 @@
The most correct way (albeit not the fastest) is to use
HTML::Parser from CPAN . Another mostly
-correct way is to use HTML::FormatText which not only
+correct way is to use HTML::!
FormatText which not only
removes HTML but also attempts to do a little
simple formatting of the resulting plain text.
@@ -181,9 +181,9 @@
# or print ASCII from HTML from a URL
# also need HTML-Tree package from CPAN
use LWP::Simple;
use HTML::Parser;
-use HTML::FormatText;
+use HTML::!
FormatText;
my ($html, $ascii);
$html = get(
@@ -203,10 +203,10 @@
If you're using the POST method, create your own user agent and encode the content appropriately.
use HTTP::Request::Common qw(POST);
-use LWP::UserAgent;
- $ua = LWP::UserAgent-
+use LWP::!
UserAgent;
+ $ua = LWP::!
UserAgent-
__How do I decode or create those %-encodings on the
web?__
@@ -269,19 +269,19 @@
__How do I edit my .htpasswd and .htgroup files with
Perl?__
-The HTTPD::UserAdmin and HTTPD::GroupAdmin modules provide a
+The HTTPD::!
UserAdmin and HTTPD::!
GroupAdmin modules provide a
consistent OO interface to these files,
regardless of how they're stored. Databases may be text,
dbm, Berkley DB or any database with a
-DBI compatible driver. HTTPD::UserAdmin
+DBI compatible driver. HTTPD::!
UserAdmin
supports files used by the `Basic' and `Digest'
authentication schemes. Here's an example:
- use HTTPD::UserAdmin ();
-HTTPD::UserAdmin
+ use HTTPD::!
UserAdmin ();
+HTTPD::!
UserAdmin
-
__How do I make sure users can't enter values into a form
@@ -313,9 +313,9 @@
$/ = '';
$header =
-That solution doesn't do well if, for example, you're trying to maintain all the Received lines. A more complete approach is to use the Mail::Header module from CPAN (part of the MailTools package).
+That solution doesn't do well if, for example, you're trying to maintain all the Received lines. A more complete approach is to use the Mail::Header module from CPAN (part of the !
MailTools package).
__How do I decode a CGI
form?__
@@ -461,9 +461,9 @@
Company policies on mail address can mean that this generates addresses that the company's mail system will not accept, so you should ask for users' mail addresses when this matters. Furthermore, not all systems on which Perl runs are so forthcoming with this information as is Unix.
The Mail::Util module from CPAN (part of the
-MailTools package) provides a ''mailaddress()'' function
+!
MailTools package) provides a ''mailaddress()'' function
that tries to guess the mail address of the user. It makes a
more intelligent guess than the code above, using
information given when the module was installed, but it
could still be incorrect. Again, the best way is often just
@@ -524,11 +524,11 @@
__How do I read mail?__
While you could use the Mail::Folder module from
-CPAN (part of the MailFolder package) or the
+CPAN (part of the !
MailFolder package) or the
Mail::Internet module from CPAN (also part of
-the MailTools package), often a module is overkill. Here's a
+the !
MailTools package), often a module is overkill. Here's a
mail sorter.
#!/usr/bin/perl