X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pod%2Fperlfaq9.pod;h=fa9ef116737fef99d9865c002857d6c6aa97578a;hb=1c3d5054181a1dff3dab69a3f7c820ac692c8730;hp=190cd68e7146ce543ef1fe7f2b7d5c54e1a03c34;hpb=589a5df2575124305cbb6773b00c1d338c9b8553;p=p5sagit%2Fp5-mst-13.2.git diff --git a/pod/perlfaq9.pod b/pod/perlfaq9.pod index 190cd68..fa9ef11 100644 --- a/pod/perlfaq9.pod +++ b/pod/perlfaq9.pod @@ -278,9 +278,9 @@ returns the escaped string: my $original = "Colon : Hash # Percent %"; - my $escaped = uri_escape( $original ) + my $escaped = uri_escape( $original ); - print "$escaped\n"; # 'Colon%20%3A%20Hash%20%23%20Percent%20%25%20' + print "$escaped\n"; # 'Colon%20%3A%20Hash%20%23%20Percent%20%25' To decode the string, use the C function: @@ -406,7 +406,7 @@ for you, too. Many people try to write their own decoder (or copy one from another program) and then run into one of the many "gotchas" -of the task. It's much easier and less hassle to use CGI.pm. +of the task. It's much easier and less hassle to use C. =head2 How do I check a valid mail address? @@ -470,7 +470,7 @@ the MIME/QP encoding. Decoding BASE64 becomes as simple as: use MIME::Base64; $decoded = decode_base64($encoded); -The MIME-Tools package (available from CPAN) supports extraction with +The C package (available from CPAN) supports extraction with decoding of BASE64 encoded attachments and content directly from email messages. @@ -497,7 +497,7 @@ 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 C module from CPAN (part of the MailTools package) provides a +The C module from CPAN (part of the C package) provides a C 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. @@ -519,19 +519,19 @@ Use the C program directly: EOF close(SENDMAIL) or warn "sendmail didn't close nicely"; -The B<-oi> option prevents sendmail from interpreting a line consisting +The B<-oi> option prevents C from interpreting a line consisting of a single dot as "end of message". The B<-t> option says to use the headers to decide who to send the message to, and B<-odq> says to put the message into the queue. This last option means your message won't be immediately delivered, so leave it out if you want immediate delivery. -Alternate, less convenient approaches include calling mail (sometimes -called mailx) directly or simply opening up port 25 have having an +Alternate, less convenient approaches include calling C (sometimes +called C) directly or simply opening up port 25 have having an intimate conversation between just you and the remote SMTP daemon, -probably sendmail. +probably C. -Or you might be able use the CPAN module Mail::Mailer: +Or you might be able use the CPAN module C: use Mail::Mailer; @@ -546,7 +546,7 @@ Or you might be able use the CPAN module Mail::Mailer: The C module uses C which is less Unix-centric than C, but less reliable. Avoid raw SMTP commands. There -are many reasons to use a mail transport agent like sendmail. These +are many reasons to use a mail transport agent like C. These include queuing, MX records, and security. =head2 How do I use MIME to make an attachment to a mail message? @@ -639,7 +639,7 @@ perl5.6, can also get the hostname. To get the IP address, you can use the C built-in function to turn the name into a number. To turn that number into the dotted octet form (a.b.c.d) that most people expect, use the C function -from the module, which also comes with perl. +from the C module, which also comes with perl. use Socket; @@ -667,17 +667,9 @@ available from CPAN) is more complex but can put as well as fetch. Use one of the RPC modules you can find on CPAN ( http://search.cpan.org/search?query=RPC&mode=all ). -=head1 REVISION - -Revision: $Revision$ - -Date: $Date$ - -See L for source control details and availability. - =head1 AUTHOR AND COPYRIGHT -Copyright (c) 1997-2009 Tom Christiansen, Nathan Torkington, and +Copyright (c) 1997-2010 Tom Christiansen, Nathan Torkington, and other authors as noted. All rights reserved. This documentation is free; you can redistribute it and/or modify it