From: John Borwick Date: Tue, 31 Oct 2000 03:15:11 +0000 (-0500) Subject: perlfaq style changes X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=a6dd486b7feb5918da837e5ad585c8ce954f9bbf;p=p5sagit%2Fp5-mst-13.2.git perlfaq style changes Message-ID: p4raw-id: //depot/perl@7501 --- diff --git a/pod/perlfaq.pod b/pod/perlfaq.pod index fa6943f..ffa4a17 100644 --- a/pod/perlfaq.pod +++ b/pod/perlfaq.pod @@ -46,7 +46,7 @@ Very general, high-level information about Perl. =item * Where can I get a list of Larry Wall witticisms? -=item * How can I convince my sysadmin/supervisor/employees to use version (5/5.005/Perl instead of some other language)? +=item * How can I convince my sysadmin/supervisor/employees to use (version 5/5.005/Perl) instead of some other language? =back @@ -162,7 +162,7 @@ Programmer tools and programming support. =item * Where can I learn about linking C with Perl? [h2xs, xsubpp] =item * I've read perlembed, perlguts, etc., but I can't embed perl in -my C program, what am I doing wrong? +my C program; what am I doing wrong? =item * When I tried to run my script, I got this message. What does it mean? @@ -424,7 +424,7 @@ Pattern matching and regular expressions. =item * I put a regular expression into $/ but it didn't work. What's wrong? -=item * How do I substitute case insensitively on the LHS, but preserving case on the RHS? +=item * How do I substitute case insensitively on the LHS while preserving case on the RHS? =item * How can I make C<\w> match national character sets? @@ -574,7 +574,7 @@ Interprocess communication (IPC), control over the user-interface =item * How can I do an atexit() or setjmp()/longjmp()? (Exception handling) -=item * Why doesn't my sockets program work under System V (Solaris)? What does the error message "Protocol not supported" mean? +=item * Why doesn't my sockets program work under System V (Solaris)? What does the error message "Protocol not supported" mean? =item * How can I call my system's unique C functions from Perl? @@ -647,7 +647,7 @@ Networking, the Internet, and a few on the web. =over 4 -=item * My CGI script runs from the command line but not the browser. (500 Server Error) +=item * My CGI script runs from the command line but not the browser. (500 Server Error) =item * How can I get better error messages from a CGI program? @@ -704,7 +704,7 @@ Networking, the Internet, and a few on the web. This document is posted regularly to comp.lang.perl.announce and several other related newsgroups. It is available in a variety of -formats from CPAN in the /CPAN/doc/FAQs/FAQ/ directory, or on the web +formats from CPAN in the /CPAN/doc/FAQs/FAQ/ directory or on the web at http://www.perl.com/perl/faq/ . =head2 How to contribute to this document @@ -740,11 +740,11 @@ All rights reserved. =head2 Bundled Distributions -When included as part of the Standard Version of Perl, or as part of +When included as part of the Standard Version of Perl or as part of its complete documentation whether printed or otherwise, this work may be distributed only under the terms of Perl's Artistic License. Any distribution of this file or derivatives thereof I -of that package require that special arrangements be made with +of that package requires that special arrangements be made with copyright holder. Irrespective of its distribution, all code examples in these files @@ -764,6 +764,10 @@ in respect of this information or its use. =over 4 +=item 1/November/2000 + +A few grammatical fixes and updates implemented by John Borwick. + =item 23/May/99 Extensive updates from the net in preparation for 5.6 release. diff --git a/pod/perlfaq1.pod b/pod/perlfaq1.pod index ec61e8b..af2ac87 100644 --- a/pod/perlfaq1.pod +++ b/pod/perlfaq1.pod @@ -56,8 +56,8 @@ You should definitely use version 5. Version 4 is old, limited, and no longer maintained; its last patch (4.036) was in 1992, long ago and far away. Sure, it's stable, but so is anything that's dead; in fact, perl4 had been called a dead, flea-bitten camel carcass. The most recent -production release is 5.005_03 (although 5.004_05 is still supported). -The most cutting-edge development release is 5.005_57. Further references +production release is 5.6 (although 5.005_03 is still supported). +The most cutting-edge development release is 5.7. Further references to the Perl language in this document refer to the production release unless otherwise specified. There may be one or more official bug fixes by the time you read this, and also perhaps some experimental versions @@ -120,10 +120,10 @@ and the rare new keyword). =head2 Is Perl difficult to learn? -No, Perl is easy to start learning -- and easy to keep learning. It looks +No, Perl is easy to start learning--and easy to keep learning. It looks like most programming languages you're likely to have experience with, so if you've ever written a C program, an awk script, a shell -script, or even a BASIC program, you're already part way there. +script, or even a BASIC program, you're already partway there. Most tasks only require a small subset of the Perl language. One of the guiding mottos for Perl development is "there's more than one way @@ -183,7 +183,7 @@ languages that come to mind include prolog and matlab. =head2 When shouldn't I program in Perl? -When your manager forbids it -- but do consider replacing them :-). +When your manager forbids it--but do consider replacing them :-). Actually, one good reason is when you already have an existing application written in another language that's all done (and done @@ -201,7 +201,7 @@ limitations given in the previous statement to some degree, but understand that Perl remains fundamentally a dynamically typed language, not a statically typed one. You certainly won't be chastised if you don't trust nuclear-plant or brain-surgery monitoring code to it. And Larry -will sleep easier, too -- Wall Street programs not withstanding. :-) +will sleep easier, too--Wall Street programs not withstanding. :-) =head2 What's the difference between "perl" and "Perl"? @@ -220,17 +220,17 @@ Larry doesn't really care. He says (half in jest) that "a script is what you give the actors. A program is what you give the audience." Originally, a script was a canned sequence of normally interactive -commands, that is, a chat script. Something like a UUCP or PPP chat +commands--that is, a chat script. Something like a UUCP or PPP chat script or an expect script fits the bill nicely, as do configuration scripts run by a program at its start up, such F<.cshrc> or F<.ircrc>, for example. Chat scripts were just drivers for existing programs, not stand-alone programs in their own right. A computer scientist will correctly explain that all programs are -interpreted, and that the only question is at what level. But if you +interpreted and that the only question is at what level. But if you ask this question of someone who isn't a computer scientist, they might tell you that a I has been compiled to physical machine code -once, and can then be run multiple times, whereas a I