Provided by: manpages-zh_1.5-1_all bug

NAME

       perlfaq2 - 獲取和學習 Perl (2003/10/16 04:57:38)

DESCRIPTIONyz
       從裏尋找 Perl 的源程式和文件,支持以及相關事項

      xW Perlnhttp://www.perl.com/CPAN/src/latest.tar.gz處取得。這蚗仵蛌漁璁′O POSIX
       tar檔案櫃,再以 gzip格式壓縮。

       Perl 可以在難以記數的孕x上運行。幾乎所有已知的 Unix l生版本都被支持
       (Perl 的本地孕x),還有其他作業系統孕x,類似 VMS, DOS, OS/2, Windows,
       QNX, BeOS, OS X, MPE/iX 和 Amiga.

       為專有孕x準備的二進制發行版,包括 Apple,可以從
       http://www.cpan.org/ports/ 找到。因為它怳ㄛO標準發行的一部分,它-
       怚i能(事實上的確)和基本的 Perl有多方悸漱ㄕP。n確切知道到底-
       些地方不同,您得自行查閱它怞U自的發行說明。這些差異可能是正-
       悸滿]譬如它怚i能附有一些鴝l碼發行的 perl所沒有的延伸,提供專屬某一-
       台的特殊功能),亦或t悸滿]例如它怚i能是植基於比較老舊的 Perl鴝l碼發行
       版)。

       nPerlhttp://www.cpan.org/ports/
           http://www.perl.com/pub/language/info/software.html

       Someone looking for a Perl for Win16 might look to Laszlo Molnar's
       djgpp port in http://www.cpan.org/ports/#msdos , which comes with clear
       installation instructions.  A simple installation guide for MS-DOS
       using Ilya Zakharevich's OS/2 port is available at
       http://www.cs.ruu.nl/%7Epiet/perl5dos.html and similarly for Windows
       3.1 at http://www.cs.ruu.nl/%7Epiet/perlwin3.html .

      tS CnperlPerlC

       那大概是您忘了複製程式庫,或者是程式庫的路徑不同的關系。您真的應該在那台-
       n安裝 perl的機器上將整套發行從頭編譯,然後打 make
       install來安裝。其他的方法大多注定n失敗。

       有一蚋眾瑼漱隤k可用來檢查和確定東西有沒有裝對地方 --把編入 perl的
       @INC陣列(perl用它來尋找程式庫的路徑)印出:

           % perl -le 'print for @INC'

       如果這-
       茷令列出了任何在您系統上不存在的路徑,那麼您或許得將適當的程式庫移到這些地方,或者制做適當的
       symlinks、aliases 或捷徑。@INC 也作為命令

           % perl -V

       的輸出。你也許會想看看 "How do I keep my own module/library directory?"
       in perlfaq8.

      ^FlXAs perlgdbm/dynamic
       loading/malloc/linking/...nPerlCPANCPAN/src/...http://www.cpan.org/
       ,但您也可以透過這茼鴔}: http://www.cpan.org/CPAN.html 來自動連接一-
       茼b地理位置上最接近您的站。至於這茬]p的運作麮z,請看
       http://www.perl.com/CPAN(最後頭沒有斜線)的說明。同時,http://mirror.cpan.org/
       也提供了 http://www.cpan.org/MIRRORED 的方便的界

       參見 CPAN FAQ 位於 http://www.cpan.org/misc/cpan-faq.html 來獲得有關
       CPAN 的 FAQ,包括如何成為一蚚頩陳

       CPAN/path/... 是 CPAN站台上頭的檔案的命名規範。CPAN 代表一
       CPAN映射的基準目錄,然後其餘的路徑是由該目錄到一-
       蚗仵蛌爾纁|。例如,如果您使用
       ftp://ftp.funet.fi/pub/languages/perl/CPAN 來做您的 CPAN 站,那麼
       CPAN/misc/japh這蚗仵蚴K可以從
       ftp://ftp.funet.fi/pub/languages/perl/CPAN/misc/japh 下載到

       由於目前 CPAN檔案庫中已經有近兩千-
       蚍珩捸A因此幾乎任何您所能想到的用途,大概都已經有現成的模組可以辦到。目前在
       CPAN/modules/by-category/ 底下的類 別包括了
       perl核心模組、協助發展模組、作業系統介情B網路、周邊設備、不同
       processes間之溝通、資料型態工具、資料庫介情B使用者介情B與其他語言介-
       情B檔名、檔案系統、檔案鎖定、軟體國際化及地方化、全球資訊網支援、伺服軟體工具、檔案庫和檔案壓縮、圖形變換處理、電子郵件及新聞討論群、程式流程控制工具、filehandles和輸入/輸出、微軟視窗模組,以及雜項模組
       等。

       參見 http://www.cpan.org/modules/00modlist.long.htmlhttp://search.cpan.org/ 來閱讀分類的模塊完整列表。

       CPAN 不是 O'Reilly and Associates 的附屬品.

      OO@g ISOANSIPerlPerlhttp://perldoc.cpan.org/ 或
       http://www.perldoc.com/ 都提供了完整的 html 格式的幫助

       惜W有許多本和 Perl有關的好書,詳情請見下惜@節的介紹。

       Tutorial documents are included in current or upcoming Perl releases
       include perltoot for objects or perlboot for a beginner's approach to
       objects, perlopentut for file opening semantics, perlreftut for
       managing references, perlretut for regular expressions, perlthrtut for
       threads, perldebtut for debugging, and perlxstut for linking C and Perl
       together.  There may be more by the time you read this.  The following
       URLs might also be of assistance:

           http://perldoc.cpan.org/
           http://www.perldoc.com/
           http://bookmarks.cpan.org/search.cgi?cat=Training%2FTutorials

       USENETPerlhttp://nntp.perl.org/group/ and these lists are also available under
       the "perl.*" hierarchy at http://groups.google.com . Other groups are
       listed at http://lists.perl.org/ ( also known as http://lists.cpan.org/
       ).

       A nice place to ask questions is the PerlMonks site,
       http://www.perlmonks.org/ , or the Perl Beginners mailing list
       http://lists.perl.org/showlist.cgi?name=beginners .

       Note that none of the above are supposed to write your code for you:
       asking questions about particular problems or general advice is fine,
       but asking someone to write your code for free is not very cool.

      pGQ{lXAOlWH

       您應看程式的性質來決定該丟到茠O子上,但也歡迎您交叉投遞一份到
       comp.lang.perl.misc上頭去。如果您打算交叉投遞到 alt.sources
       的話,請務必遵照該板所規定的標準,包括標頭的 Followup-To 欄不可將
       alt.sources 列入; 詳見該板的 FAQ 。

       If you're just looking for software, first use Google (
       http://www.google.com ), Google's usenet search interface (
       http://groups.google.com ),  and CPAN Search ( http://search.cpan.org
       ).  This is faster and more productive than just posting a request.

       Perly

       市惜W有許多有關 Perl 和/或 CGI程式設-
       p的書。其中有些很好,有些還過得去,但也有不少根本不o買。大部分的
       Perl書都列在 Tom Christiansen
       所維護的列表中,其中一些有詳細的評論,位於
       http://www.perl.com/perl/critiques/index.html .

       毫無爭議地,最權威的 Perl參考書n數以下這本,由
       Perl的創始者著作,現在是第三版 (July 2000):

           Programming Perl (the "Camel Book"):
               by Larry Wall, Tom Christiansen, and Jon Orwant
               0-596-00027-8  [3rd edition July 2000]
               http://www.oreilly.com/catalog/pperl3/
           (English, translations to several languages are also available)

       The companion volume to the Camel containing thousands of real-world
       examples, mini-tutorials, and complete programs is:

           The Perl Cookbook (the "Ram Book"):
               by Tom Christiansen and Nathan Torkington,
                   with Foreword by Larry Wall
               ISBN 1-56592-243-3 [1st Edition August 1998]
               http://perl.oreilly.com/catalog/cookbook/

       If you're already a seasoned programmer, then the Camel Book might
       suffice for you to learn Perl from.  If you're not, check out the Llama
       book:

           Learning Perl (the "Llama Book")
               by Randal L. Schwartz and Tom Phoenix
               ISBN 0-596-00132-0 [3rd edition July 2001]
               http://www.oreilly.com/catalog/lperl3/

       And for more advanced information on writing larger programs, presented
       in the same style as the Llama book, continue your education with the
       Alpaca book:

           Learning Perl Objects, References, and Modules (the "Alpaca Book")
              by Randal L. Schwartz, with Tom Phoenix (foreword by Damian Conway)
              ISBN 0-596-00478-8 [1st edition June 2003]
              http://www.oreilly.com/catalog/lrnperlorm/

       If you're not an accidental programmer, but a more serious and possibly
       even degreed computer scientist who doesn't need as much hand-holding
       as we try to provide in the Llama, please check out the delightful book

           Perl: The Programmer's Companion
               by Nigel Chapman
               ISBN 0-471-97563-X [1997, 3rd printing Spring 1998]
               http://www.wiley.com/compbooks/catalog/97563-X.htm
               http://www.wiley.com/compbooks/chapman/perl/perltpc.html (errata etc)

       If you are more at home in Windows the following is available (though
       unfortunately rather dated).

           Learning Perl on Win32 Systems (the "Gecko Book")
               by Randal L. Schwartz, Erik Olson, and Tom Christiansen,
                   with foreword by Larry Wall
               ISBN 1-56592-324-3 [1st edition August 1997]
               http://www.oreilly.com/catalog/lperlwin/

       Addison-Wesley ( http://www.awlonline.com/ ) and Manning (
       http://www.manning.com/ ) are also publishers of some fine Perl books
       such as Object Oriented Programming with Perl by Damian Conway and
       Network Programming with Perl by Lincoln Stein.

       An excellent technical book discounter is Bookpool at
       http://www.bookpool.com/ where a 30% discount or more is not unusual.

       What follows is a list of the books that the FAQ authors found
       personally useful.  Your mileage may (but, we hope, probably won't)
       vary.

       Recommended books on (or mostly on) Perl follow.

       References
               Programming Perl
                   by Larry Wall, Tom Christiansen, and Jon Orwant
                   ISBN 0-596-00027-8 [3rd edition July 2000]
                   http://www.oreilly.com/catalog/pperl3/

               Perl 5 Pocket Reference
               by Johan Vromans
                   ISBN 0-596-00032-4 [3rd edition May 2000]
                   http://www.oreilly.com/catalog/perlpr3/

               Perl in a Nutshell
               by Ellen Siever, Stephan Spainhour, and Nathan Patwardhan
                   ISBN 1-56592-286-7 [1st edition December 1998]
                   http://www.oreilly.com/catalog/perlnut/

       Tutorials
               Elements of Programming with Perl
                   by Andrew L. Johnson
                   ISBN 1-884777-80-5 [1st edition October 1999]
                   http://www.manning.com/Johnson/

               Learning Perl
                   by Randal L. Schwartz and Tom Phoenix
                   ISBN 0-596-00132-0 [3rd edition July 2001]
                   http://www.oreilly.com/catalog/lperl3/

               Learning Perl Objects, References, and Modules
                  by Randal L. Schwartz, with Tom Phoenix (foreword by Damian Conway)
                  ISBN 0-596-00478-8 [1st edition June 2003]
                  http://www.oreilly.com/catalog/lrnperlorm/

               Learning Perl on Win32 Systems
                   by Randal L. Schwartz, Erik Olson, and Tom Christiansen,
                       with foreword by Larry Wall
                   ISBN 1-56592-324-3 [1st edition August 1997]
                   http://www.oreilly.com/catalog/lperlwin/

               Perl: The Programmer's Companion
                   by Nigel Chapman
                   ISBN 0-471-97563-X [1997, 3rd printing Spring 1998]
               http://www.wiley.com/compbooks/catalog/97563-X.htm
               http://www.wiley.com/compbooks/chapman/perl/perltpc.html (errata etc)

               Cross-Platform Perl
                   by Eric Foster-Johnson
                   ISBN 1-55851-483-X [2nd edition September 2000]
                   http://www.pconline.com/~erc/perlbook.htm

               MacPerl: Power and Ease
                   by Vicki Brown and Chris Nandor,
                       with foreword by Matthias Neeracher
                   ISBN 1-881957-32-2 [1st edition May 1998]
                   http://www.macperl.com/ptf_book/

       Task-Oriented
               The Perl Cookbook
                   by Tom Christiansen and Nathan Torkington
                       with foreword by Larry Wall
                   ISBN 1-56592-243-3 [1st edition August 1998]
                   http://www.oreilly.com/catalog/cookbook/

               Effective Perl Programming
                   by Joseph Hall
                   ISBN 0-201-41975-0 [1st edition 1998]
                   http://www.awl.com/

       Special Topics
               Mastering Regular Expressions
                   by Jeffrey E. F. Friedl
                   ISBN 0-596-00289-0 [2nd edition July 2002]
                   http://www.oreilly.com/catalog/regex2/

               Network Programming with Perl
                   by Lincoln Stein
                   ISBN 0-201-61571-1 [1st edition 2001]
                   http://www.awlonline.com/

               Object Oriented Perl
                   Damian Conway
                       with foreword by Randal L. Schwartz
                   ISBN 1-884777-79-1 [1st edition August 1999]
                   http://www.manning.com/Conway/

               Data Munging with Perl
                   Dave Cross
                   ISBN 1-930110-00-6 [1st edition 2001]
                   http://www.manning.com/cross

               Mastering Perl/Tk
                   by Steve Lidie and Nancy Walsh
                   ISBN 1-56592-716-8 [1st edition January 2002]
                   http://www.oreilly.com/catalog/mastperltk/

               Extending and Embedding Perl
                  by Tim Jenness and Simon Cozens
                  ISBN 1-930110-82-0 [1st edition August 2002]
                  http://www.manning.com/jenness

      M Perl志

       The first (and for a long time, only) periodical devoted to All Things
       Perl, The Perl Journal contains tutorials, demonstrations, case
       studies, announcements, contests, and much more.  TPJ has columns on
       web development, databases, Win32 Perl, graphical programming, regular
       expressions, and networking, and sponsors the Obfuscated Perl Contest
       and the Perl Poetry Contests.  Beginning in November 2002, TPJ moved to
       a reader-supported monthly e-zine format in which subscribers can
       download issues as PDF documents. For more details on TPJ, see
       http://www.tpj.com/

       Beyond this, magazines that frequently carry quality articles on Perl
       are The Perl Review ( http://www.theperlreview.com ), Unix Review (
       http://www.unixreview.com/ ), Linux Magazine (
       http://www.linuxmagazine.com/ ), and Usenix's newsletter/magazine to
       its members, login: ( http://www.usenix.org/ )

       The Perl columns of Randal L. Schwartz are available on the web at
       http://www.stonehenge.com/merlyn/WebTechniques/ ,
       http://www.stonehenge.com/merlyn/UnixReview/ , and
       http://www.stonehenge.com/merlyn/LinuxMag/ .

      W PerlFTPM WWW

       如果您想達到最好(還有最省錢)的傳輸效果,那麼從
       http://www.cpan.org/SITES.html
       所列的站台中任選其一,從上頭把完整的映射站名單抓下來。然後您可以從中挑選一-
       蚢黿z來說傳輸最快的站台。.PP 也可以使用 xx.cpan.org ,其中 "xx"
       是雙字符的國家代碼,例如澳大利亞可以使用 au.cpan.org.
       [注意:這只對至少包含了一茈D機鏡像的國家有效。]

      Q PerllCH

       大部分的南模組(如 Tk、CGI 和 libwww-perl)有專屬各自的 mailing
       lists。有關資料請參考這些模組的使用說明。

       完整的與 Perl 有關的郵件列表可以從這裏找到:

               http://lists.perl.org/

       comp.lang.perl.miscw

       The Google search engine now carries archived and searchable newsgroup
       content.

       http://groups.google.com/groups?group=comp.lang.perl.misc

       If you have a question, you can be sure someone has already asked the
       same question at some point on c.l.p.m. It requires some time and
       patience to sift through all the content but often you will find the
       answer you seek.

      pR~ Perlbugsnperlbug@perl.org .

       如果您想報告的 bug是有關某茷D標準發行的 perl(詳見「些孕x上有 Perl
       ?」一題的答案)、某可執行檔形式的發行,或是某非標準的模組(譬如
       Tk、CGI 等),那麼請參考它所附的使用說明,以確定最合適報告 bugs的地方。

       詳情請見 perlbug(1) 手冊 (perl5.004 或更新版本)。

      O perl.com? Perl Mongers? pm.org? perl.org? cpan.org?

       The Perl Home Page at http://www.perl.com/ is currently hosted by The
       O'Reilly Network, a subsidiary of O'Reilly and Associates.

       Perl Mongers is an advocacy organization for the Perl language which
       maintains the web site http://www.perl.org/ as a general advocacy site
       for the Perl language.

       Perl Mongers uses the pm.org domain for services related to Perl user
       groups, including the hosting of mailing lists and web sites.  See the
       Perl user group web site at http://www.pm.org/ for more information
       about joining, starting, or requesting services for a Perl user group.

       Perl Mongers also maintain the perl.org domain to provide general
       support services to the Perl community, including the hosting of
       mailing lists, web sites, and other services.  The web site
       http://www.perl.org/ is a general advocacy site for the Perl language,
       and there are many other sub-domains for special topics, such as

           http://bugs.perl.org/
           http://history.perl.org/
           http://lists.perl.org/
           http://use.perl.org/

       http://www.cpan.org/ is the Comprehensive Perl Archive Network, a
       replicated worlwide repository of Perl software, see the What is CPAN?
       question earlier in this document.

AUTHOR AND COPYRIGHT

       Copyright (c) 1997-2001 Tom Christiansen and Nathan Torkington.  All
       rights reserved.

       This documentation is free; you can redistribute it and/or modify it
       under the same terms as Perl itself.

       Irrespective of its distribution, all code examples here are in the
       public domain.  You are permitted and encouraged to use this code and
       any derivatives thereof in your own programs for fun or for profit as
       you see fit.  A simple comment in the code giving credit to the FAQ
       would be courteous but is not required.

者
      Auu@室