📄 perlfaq1.1
字号:
.\" Automatically generated by Pod::Man 2.16 (Pod::Simple 3.05).\".\" Standard preamble:.\" ========================================================================.de Sh \" Subsection heading.br.if t .Sp.ne 5.PP\fB\\$1\fR.PP...de Sp \" Vertical space (when we can't use .PP).if t .sp .5v.if n .sp...de Vb \" Begin verbatim text.ft CW.nf.ne \\$1...de Ve \" End verbatim text.ft R.fi...\" Set up some character translations and predefined strings. \*(-- will.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left.\" double quote, and \*(R" will give a right double quote. \*(C+ will.\" give a nicer C++. Capital omega is used to do unbreakable dashes and.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,.\" nothing in troff, for use with C<>..tr \(*W-.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'.ie n \{\. ds -- \(*W-. ds PI pi. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch. ds L" "". ds R" "". ds C` "". ds C' ""'br\}.el\{\. ds -- \|\(em\|. ds PI \(*p. ds L" ``. ds R" '''br\}.\".\" Escape single quotes in literal strings from groff's Unicode transform..ie \n(.g .ds Aq \(aq.el .ds Aq '.\".\" If the F register is turned on, we'll generate index entries on stderr for.\" titles (.TH), headers (.SH), subsections (.Sh), items (.Ip), and index.\" entries marked with X<> in POD. Of course, you'll have to process the.\" output yourself in some meaningful fashion..ie \nF \{\. de IX. tm Index:\\$1\t\\n%\t"\\$2"... nr % 0. rr F.\}.el \{\. de IX...\}.\".\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2)..\" Fear. Run. Save yourself. No user-serviceable parts.. \" fudge factors for nroff and troff.if n \{\. ds #H 0. ds #V .8m. ds #F .3m. ds #[ \f1. ds #] \fP.\}.if t \{\. ds #H ((1u-(\\\\n(.fu%2u))*.13m). ds #V .6m. ds #F 0. ds #[ \&. ds #] \&.\}. \" simple accents for nroff and troff.if n \{\. ds ' \&. ds ` \&. ds ^ \&. ds , \&. ds ~ ~. ds /.\}.if t \{\. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u". ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'.\}. \" troff and (daisy-wheel) nroff accents.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'.ds 8 \h'\*(#H'\(*b\h'-\*(#H'.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#].ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#].ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#].ds ae a\h'-(\w'a'u*4/10)'e.ds Ae A\h'-(\w'A'u*4/10)'E. \" corrections for vroff.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'. \" for low resolution devices (crt and lpr).if \n(.H>23 .if \n(.V>19 \\{\. ds : e. ds 8 ss. ds o a. ds d- d\h'-1'\(ga. ds D- D\h'-1'\(hy. ds th \o'bp'. ds Th \o'LP'. ds ae ae. ds Ae AE.\}.rm #[ #] #H #V #F C.\" ========================================================================.\".IX Title "PERLFAQ1 1".TH PERLFAQ1 1 "2007-12-18" "perl v5.10.0" "Perl Programmers Reference Guide".\" For nroff, turn off justification. Always turn off hyphenation; it makes.\" way too many mistakes in technical documents..if n .ad l.nh.SH "NAME"perlfaq1 \- General Questions About Perl ($Revision: 10427 $).SH "DESCRIPTION".IX Header "DESCRIPTION"This section of the \s-1FAQ\s0 answers very general, high-level questionsabout Perl..Sh "What is Perl?".IX Subsection "What is Perl?"Perl is a high-level programming language with an eclectic heritagewritten by Larry Wall and a cast of thousands. It derives from theubiquitous C programming language and to a lesser extent from sed,awk, the Unix shell, and at least a dozen other tools and languages.Perl's process, file, and text manipulation facilities make itparticularly well-suited for tasks involving quick prototyping, systemutilities, software tools, system management tasks, database access,graphical programming, networking, and world wide web programming.These strengths make it especially popular with system administratorsand \s-1CGI\s0 script authors, but mathematicians, geneticists, journalists,and even managers also use Perl. Maybe you should, too..Sh "Who supports Perl? Who develops it? Why is it free?".IX Subsection "Who supports Perl? Who develops it? Why is it free?"The original culture of the pre-populist Internet and the deeply-heldbeliefs of Perl's author, Larry Wall, gave rise to the free and opendistribution policy of perl. Perl is supported by its users. Thecore, the standard Perl library, the optional modules, and thedocumentation you're reading now were all written by volunteers. Seethe personal note at the end of the \s-1README\s0 file in the perl sourcedistribution for more details. See perlhist (new as of 5.005)for Perl's milestone releases..PPIn particular, the core development team (known as the Perl Porters)are a rag-tag band of highly altruistic individuals committed toproducing better software for free than you could hope to purchase formoney. You may snoop on pending developments via the archives athttp://www.xray.mpe.mpg.de/mailing\-lists/perl5\-porters/and http://archive.develooper.com/perl5\-porters@perl.org/or the news gateway nntp://nntp.perl.org/perl.perl5.porters orits web interface at http://nntp.perl.org/group/perl.perl5.porters ,or read the faq at http://dev.perl.org/perl5/docs/p5p\-faq.html ,or you can subscribe to the mailing list by sendingperl5\-porters\-request@perl.org a subscription request(an empty message with no subject is fine)..PPWhile the \s-1GNU\s0 project includes Perl in its distributions, there's nosuch thing as \*(L"\s-1GNU\s0 Perl\*(R". Perl is not produced nor maintained by theFree Software Foundation. Perl's licensing terms are also more openthan \s-1GNU\s0 software's tend to be..PPYou can get commercial support of Perl if you wish, although for mostusers the informal support will more than suffice. See the answer to\&\*(L"Where can I buy a commercial version of perl?\*(R" for more information..Sh "Which version of Perl should I use?".IX Subsection "Which version of Perl should I use?"(contributed by brian d foy).PPThere is often a matter of opinion and taste, and there isn't any oneanswer that fits anyone. In general, you want to use either the currentstable release, or the stable release immediately prior to that one.Currently, those are perl5.10.x and perl5.8.x, respectively..PPBeyond that, you have to consider several things and decide which is bestfor you..IP "\(bu" 4If things aren't broken, upgrading perl may break them (or at least issuenew warnings)..IP "\(bu" 4The latest versions of perl have more bug fixes..IP "\(bu" 4The Perl community is geared toward supporting the most recent releases,so you'll have an easier time finding help for those..IP "\(bu" 4Versions prior to perl5.004 had serious security problems with bufferoverflows, and in some cases have \s-1CERT\s0 advisories (for instance,http://www.cert.org/advisories/CA\-1997\-17.html )..IP "\(bu" 4The latest versions are probably the least deployed and widely tested, soyou may want to wait a few months after their release and see whatproblems others have if you are risk averse..IP "\(bu" 4The immediate, previous releases (i.e. perl5.8.x ) are usually maintainedfor a while, although not at the same level as the current releases..IP "\(bu" 4No one is actively supporting Perl 4. Five years ago it was a deadcamel carcass (according to this document). Now it's barely a skeletonas its whitewashed bones have fractured or eroded..IP "\(bu" 4There is no Perl 6 release scheduled, but it will be available when it's ready. Stay tuned, but don't worry that you'll have to change major versions of Perl; no one is going to take Perl 5 away from you..IP "\(bu" 4There are really two tracks of perl development: a maintenance versionand an experimental version. The maintenance versions are stable, andhave an even number as the minor release (i.e. perl5.10.x, where 10 is theminor release). The experimental versions may include features thatdon't make it into the stable versions, and have an odd number as theminor release (i.e. perl5.9.x, where 9 is the minor release)..Sh "What are Perl 4, Perl 5, or Perl 6?".IX Subsection "What are Perl 4, Perl 5, or Perl 6?"(contributed by brian d foy).PPIn short, Perl 4 is the past, Perl 5 is the present, and Perl 6 is thefuture..PPThe number after perl (i.e. the 5 after Perl 5) is the major releaseof the perl interpreter as well as the version of the language. Eachmajor version has significant differences that earlier versions cannotsupport..PPThe current major release of Perl is Perl 5, and was released in 1994.It can run scripts from the previous major release, Perl 4 (March 1991),but has significant differences. It introduced the concept of references,complex data structures, and modules. The Perl 5 interpreter was acomplete re-write of the previous perl sources..PPPerl 6 is the next major version of Perl, but it's still in developmentin both its syntax and design. The work started in 2002 and is stillongoing. Many of the most interesting features have shown up in thelatest versions of Perl 5, and some Perl 5 modules allow you to use somePerl 6 syntax in your programs. You can learn more about Perl 6 athttp://dev.perl.org/perl6/ .
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -