From: Chris 'BinGOs' Williams Date: Thu, 19 Jan 2012 21:21:06 +0000 (+0000) Subject: Update perlfaq to CPAN version 5.0150038 X-Git-Tag: accepted/trunk/20130322.191538~1077 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=329d453aed974070d8cc031fdb6e31b1c1ae29ae;p=platform%2Fupstream%2Fperl.git Update perlfaq to CPAN version 5.0150038 [DELTA] 5.0150038 Thu 19 Jan 2012 21:10:06 +0100 * Marpa::XS updated (Jeffrey Kegler) * Frameworks (wchristian, ranguard, bigpresh, kraih) * Cleanup (wchristian) * Users email (apeiron, ranguard) --- diff --git a/Porting/Maintainers.pl b/Porting/Maintainers.pl index eedbed0..52d11f0 100755 --- a/Porting/Maintainers.pl +++ b/Porting/Maintainers.pl @@ -748,7 +748,7 @@ use File::Glob qw(:case); 'perlfaq' => { 'MAINTAINER' => 'perlfaq', - 'DISTRIBUTION' => 'LLAP/perlfaq-5.0150037.tar.gz', + 'DISTRIBUTION' => 'LLAP/perlfaq-5.0150038.tar.gz', 'FILES' => q[cpan/perlfaq], 'EXCLUDED' => [ qw( t/release-pod-syntax.t diff --git a/cpan/perlfaq/lib/perlfaq.pm b/cpan/perlfaq/lib/perlfaq.pm index b42a6ca..9947fdb 100644 --- a/cpan/perlfaq/lib/perlfaq.pm +++ b/cpan/perlfaq/lib/perlfaq.pm @@ -1,6 +1,6 @@ package perlfaq; { - $perlfaq::VERSION = '5.0150037'; + $perlfaq::VERSION = '5.0150038'; } 0; # not is it supposed to be loaded diff --git a/cpan/perlfaq/lib/perlfaq.pod b/cpan/perlfaq/lib/perlfaq.pod index 4d60531..dfc2719 100644 --- a/cpan/perlfaq/lib/perlfaq.pod +++ b/cpan/perlfaq/lib/perlfaq.pod @@ -32,7 +32,7 @@ your suggestion create an issue or pull request against L. Once approved, changes are merged into L, the -repository which drives L, and they are +repository which drives L, and they are distributed with the next Perl 5 release. =head2 What if my question isn't answered in the FAQ? @@ -1333,6 +1333,10 @@ How do I decode a MIME/BASE64 string? =item * +How do I find the user's mail address? + +=item * + How do I send email? =item * @@ -1363,7 +1367,7 @@ How can I do RPC in Perl? Tom Christiansen wrote the original perlfaq then expanded it with the help of Nat Torkington. brian d foy substantialy edited and expanded -the perlfaq. perlfaq-workers and others have also supplied feedback, +the perlfaq. perlfaq-workers and others have also supplied feedback, patches and corrections over the years. =head1 AUTHOR AND COPYRIGHT diff --git a/cpan/perlfaq/lib/perlfaq1.pod b/cpan/perlfaq/lib/perlfaq1.pod index 7556054..a02fae6 100644 --- a/cpan/perlfaq/lib/perlfaq1.pod +++ b/cpan/perlfaq/lib/perlfaq1.pod @@ -10,20 +10,20 @@ about Perl. =head2 What is Perl? Perl is a high-level programming language with an eclectic heritage -written by Larry Wall and a cast of thousands. +written by Larry Wall and a cast of thousands. Perl's process, file, and text manipulation facilities make it particularly well-suited for tasks involving quick prototyping, system utilities, software tools, system management tasks, database access, graphical programming, networking, and web programming. -Perl derives from the ubiquitous C programming language and to a -lesser extent from sed, awk, the Unix shell, and many other tools +Perl derives from the ubiquitous C programming language and to a +lesser extent from sed, awk, the Unix shell, and many other tools and languages. These strengths make it especially popular with web developers and system administrators. Mathematicians, geneticists, journalists, -managers and many other people also use Perl. +managers and many other people also use Perl. =head2 Who supports Perl? Who develops it? Why is it free? @@ -36,7 +36,7 @@ documentation you're reading now were all written by volunteers. The core development team (known as the Perl Porters) are a group of highly altruistic individuals committed to producing better software for free than you could hope to purchase for -money. You may snoop on pending developments via the +money. You may snoop on pending developments via the L or read the L, or you can subscribe to the mailing list by sending @@ -133,11 +133,11 @@ support. The current major release of Perl is Perl 5, first released in 1994. It can run scripts from the previous major release, Perl 4 -(March 1991), but has significant differences. +(March 1991), but has significant differences. Perl 6 is a reinvention of Perl, it is a language in the same lineage but -not compatible. The two are complementary, not mutually exclusive. Perl 6 is -not meant to replace Perl 5, and vice versa. See L below +not compatible. The two are complementary, not mutually exclusive. Perl 6 is +not meant to replace Perl 5, and vice versa. See L below to find out more. See L for a history of Perl revisions. @@ -145,16 +145,16 @@ See L for a history of Perl revisions. =head2 What is Perl 6? Perl 6 was I described as the community's rewrite of Perl 5. -Development started in 2002; syntax and design work continue to this day. -As the language has evolved, it has become clear that it is a separate -language, incompatible with Perl 5 but in the same language family. - -Contrary to popular belief, Perl 6 and Perl 5 peacefully coexist with one -another. Perl 6 has proven to be a fascinating source of ideas for those -using Perl 5 (the L object system is a well-known example). There is -overlap in the communities, and this overlap fosters the tradition of sharing -and borrowing that have been instrumental to Perl's success. The current -leading implementation of Perl 6 is Rakudo, and you can learn more about +Development started in 2002; syntax and design work continue to this day. +As the language has evolved, it has become clear that it is a separate +language, incompatible with Perl 5 but in the same language family. + +Contrary to popular belief, Perl 6 and Perl 5 peacefully coexist with one +another. Perl 6 has proven to be a fascinating source of ideas for those +using Perl 5 (the L object system is a well-known example). There is +overlap in the communities, and this overlap fosters the tradition of sharing +and borrowing that have been instrumental to Perl's success. The current +leading implementation of Perl 6 is Rakudo, and you can learn more about it at L. If you want to learn more about Perl 6, or have a desire to help in @@ -203,13 +203,13 @@ discussed in Part 2. =head2 How does Perl compare with other languages like Java, Python, REXX, Scheme, or Tcl? -Perl can be used for almost any coding problem, even ones which require +Perl can be used for almost any coding problem, even ones which require integrating specialist C code for extra speed. As with any tool it can be used well or badly. Perl has many strengths, and a few weaknesses, -precisely which areas are good and bad is often a personal choice. +precisely which areas are good and bad is often a personal choice. -When choosing a language you should also be influenced by the -L, L +When choosing a language you should also be influenced by the +L, L and L which surrounds it. For comparisons to a specific language it is often best to create @@ -249,12 +249,12 @@ well), or you have an application language specifically designed for a certain task (e.g. prolog, make). If you find that you need to speed up a specific part of a Perl -application (not something you often need) you may want to use C, +application (not something you often need) you may want to use C, but you can access this from your Perl code with L. =head2 What's the difference between "perl" and "Perl"? -"Perl" is the name of the language. Only the "P" is capitalized. +"Perl" is the name of the language. Only the "P" is capitalized. The name of the interpreter (the program which runs the Perl script) is "perl" with a lowercase "p". diff --git a/cpan/perlfaq/lib/perlfaq2.pod b/cpan/perlfaq/lib/perlfaq2.pod index 7aa63f5..e890cc3 100644 --- a/cpan/perlfaq/lib/perlfaq2.pod +++ b/cpan/perlfaq/lib/perlfaq2.pod @@ -35,13 +35,13 @@ See L =head2 I don't have a C compiler. How can I build my own Perl interpreter? -For Windows, use a binary version of Perl, +For Windows, use a binary version of Perl, L and L come with a bundled C compiler. -Otherwise if you really do want to build Perl, you need to get a -binary version of C for your system first. Use a search +Otherwise if you really do want to build Perl, you need to get a +binary version of C for your system first. Use a search engine to find out how to do this for your operating system. =head2 I copied the Perl binary from one machine to another, but scripts don't work. @@ -77,14 +77,14 @@ architecture. CPAN stands for Comprehensive Perl Archive Network, a multi-gigabyte archive replicated on hundreds of machines all over the world. CPAN -contains tens of thousands of modules and extensions, source code -and documentation, designed for I from commercial +contains tens of thousands of modules and extensions, source code +and documentation, designed for I from commercial database interfaces to keyboard/screen control and running large web sites. You can search CPAN on L or L. -The master web site for CPAN is L, +The master web site for CPAN is L, L lists all mirrors. See the CPAN FAQ at L for answers @@ -128,7 +128,7 @@ which maintains the web site L as a general advocacy site for the Perl language. It uses the domain to provide general support services to the Perl community, including the hosting of mailing lists, web sites, and other services. There are also many -other sub-domains for special topics like learning Perl and jobs in Perl, +other sub-domains for special topics like learning Perl and jobs in Perl, such as: =over 4 @@ -143,10 +143,10 @@ such as: =back -L uses the pm.org domain for services -related to local Perl user groups, including the hosting of mailing lists -and web sites. See the L for more -information about joining, starting, or requesting services for a +L uses the pm.org domain for services +related to local Perl user groups, including the hosting of mailing lists +and web sites. See the L for more +information about joining, starting, or requesting services for a Perl user group. CPAN, or the Comprehensive Perl Archive Network L, @@ -179,7 +179,7 @@ Several unix/linux releated magazines frequently includes articles on Perl. =head2 Which Perl blogs should I read? L covers some of the major events in the Perl -world, L is a weekly e-mail +world, L is a weekly e-mail (and RSS feed) of hand-picked Perl articles. L hosts many Perl blogs, there are also @@ -198,7 +198,7 @@ that you can grab and carefully read to your manager. It is distributed in releases and comes in well-defined packages. There is a very large and supportive user community and an extensive literature. -If you still need commercial support +If you still need commercial support L offers this. @@ -216,8 +216,8 @@ information about your installation to include with your message, then sends the message to the right place. To determine if a module came with your version of Perl, you can -install and use the L module. It has the information -about the modules (with their versions) included with each release +install and use the L module. It has the information +about the modules (with their versions) included with each release of Perl. Every CPAN module has a bug tracker set up in RT, L. diff --git a/cpan/perlfaq/lib/perlfaq3.pod b/cpan/perlfaq/lib/perlfaq3.pod index 4cf89c2..0eef818 100644 --- a/cpan/perlfaq/lib/perlfaq3.pod +++ b/cpan/perlfaq/lib/perlfaq3.pod @@ -133,8 +133,8 @@ Have you read the appropriate manpages? Here's a brief index: =item Various -L -(not a man-page but still useful, a collection of various essays on +L +(not a man-page but still useful, a collection of various essays on Perl techniques) =back @@ -153,7 +153,7 @@ evaluated. You can also examine the symbol table, get stack backtraces, check variable values, set breakpoints, and other operations typically found in symbolic debuggers. -You can also use L which is an interactive shell for Perl, +You can also use L which is an interactive shell for Perl, commonly known as a REPL - Read, Evaluate, Print, Loop. It provides various handy features. @@ -315,8 +315,8 @@ for Perl programs. =head2 Is there a pretty-printer (formatter) for Perl? -L comes with a perl script L which indents and -reformats Perl scripts to make them easier to read by trying to follow +L comes with a perl script L which indents and +reformats Perl scripts to make them easier to read by trying to follow the rules of the L. If you write Perl, or spend much time reading Perl, you will probably find it useful. @@ -906,7 +906,7 @@ you use. It can allow existing CGI scripts to enjoy this flexibility and performance with minimal changes, or can be used along with modern Perl web frameworks to make writing and deploying web services with Perl a breeze. -These solutions can have far-reaching effects on your system and on the way you +These solutions can have far-reaching effects on your system and on the way you write your CGI programs, so investigate them with care. See also diff --git a/cpan/perlfaq/lib/perlfaq4.pod b/cpan/perlfaq/lib/perlfaq4.pod index fc0813a..e5de153 100644 --- a/cpan/perlfaq/lib/perlfaq4.pod +++ b/cpan/perlfaq/lib/perlfaq4.pod @@ -340,7 +340,7 @@ the entire list. So push(@results, some_func($i)); } -or even +or even push(@results, some_func($_)) for 5 .. 500_005; @@ -370,15 +370,15 @@ who attempts to generate random numbers by deterministic means is, of course, living in a state of sin." Perl relies on the underlying system for the implementation of -C and C; on some systems, the generated numbers are -not random enough (especially on Windows : see -L). +C and C; on some systems, the generated numbers are +not random enough (especially on Windows : see +L). Several CPAN modules in the C namespace implement better -pseudorandom generators; see for example -L ("Mersenne Twister", fast), or -L (uses the imperfections in the system's +pseudorandom generators; see for example +L ("Mersenne Twister", fast), or +L (uses the imperfections in the system's timer to generate random numbers, which is rather slow). -More algorithms for random numbers are described in +More algorithms for random numbers are described in "Numerical Recipes in C" at L =head2 How do I get a random number between X and Y? @@ -724,13 +724,13 @@ and/or balanced expressions, see the so-called L<< (?PARNO)|perlre/C<(?PARNO)> C<(?-PARNO)> C<(?+PARNO)> C<(?R)> C<(?0)> >> construct (available since perl 5.10). The CPAN module L can help to build such -regular expressions (see in particular +regular expressions (see in particular L and L). More complex cases will require to write a parser, probably using a parsing module from CPAN, like -L, L, L, -L, or L. +L, L, L, +L, or L. =head2 How do I reverse a string? @@ -2531,7 +2531,7 @@ L does for you: =head2 How can I prevent addition of unwanted keys into a hash? Since version 5.8.0, hashes can be I to a fixed number -of given keys. Methods for creating and dealing with restricted hashes +of given keys. Methods for creating and dealing with restricted hashes are exported by the L module. =head1 Data: Misc diff --git a/cpan/perlfaq/lib/perlfaq8.pod b/cpan/perlfaq/lib/perlfaq8.pod index 552e00b..1c7793e 100644 --- a/cpan/perlfaq/lib/perlfaq8.pod +++ b/cpan/perlfaq/lib/perlfaq8.pod @@ -924,8 +924,8 @@ the initial telnet handshaking, then the standard dual-process approach will suffice: use IO::Socket; # new in 5.004 - my $handle = IO::Socket::INET->new('L - or die "can't connect to port 80 on L $!"; + my $handle = IO::Socket::INET->new('www.perl.com:80') + or die "can't connect to port 80 on www.perl.com $!"; $handle->autoflush(1); if (fork()) { # XXX: undef means failure select($handle); diff --git a/cpan/perlfaq/lib/perlfaq9.pod b/cpan/perlfaq/lib/perlfaq9.pod index 2a58898..f00acca 100644 --- a/cpan/perlfaq/lib/perlfaq9.pod +++ b/cpan/perlfaq/lib/perlfaq9.pod @@ -9,68 +9,83 @@ sending and receiving email as well as general networking. =head2 Should I use a web framework? -Yes. If you are building a web site with any level of interactivity +Yes. If you are building a web site with any level of interactivity (forms / users / databases), you will want to use a framework to make handling requests and responses easier. If there is no interactivity then you may still want to look at using something like L